Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only the last metric in a publish is forwared to influx #7

Open
BoBiene opened this issue Sep 4, 2022 · 1 comment
Open

Only the last metric in a publish is forwared to influx #7

BoBiene opened this issue Sep 4, 2022 · 1 comment

Comments

@BoBiene
Copy link

BoBiene commented Sep 4, 2022

seems like only the last metric in the metrics-array in the publish message is forwared to influxdb.

@kylehofer
Copy link

We experienced this issue too.

I had a look through the code and found that when a payload is recieved, it will map a metric name to that metric alias. It does this before processing any metrics. If you have no alias set for your metrics, then this map will only contain one value, which would be the last metric in the payload.

https://github.com/hivemq/hivemq-sparkplug-influxdb-extension/blob/master/src/main/java/com/hivemq/extensions/sparkplug/SparkplugBInterceptor.java#L80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants