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

MQTT/Sparkplug metric properties #152

Open
gaillarddamien opened this issue Oct 3, 2024 · 2 comments
Open

MQTT/Sparkplug metric properties #152

gaillarddamien opened this issue Oct 3, 2024 · 2 comments

Comments

@gaillarddamien
Copy link
Contributor

MQTT/Sparkplug metrics may come with properties, but the driver can not handle them all.

At the moment,

Some of our devices publish MQTT/Sparkplug metrics with custom properties that go silently ignored, for they are not expected by the driver.

It would be really helpful if we could:

  • keep every metric property somewhere (most likely within the realtimeData document associated with this metric?), including properties that are not known beforehand
  • archive them into hist too (something like "valueJson": {"p": {"k1": "v1", "k2": "v2"}}?)
@riclolsen
Copy link
Owner

Hi Damien,
I have made some changes.
valueJson now captures the full metric data (as a JSON string).
Can you check if this fulfills your need?

@gaillarddamien
Copy link
Contributor Author

Hi, thank you for the quick response.
It seems to be working, and it looks like this could do the trick.
It is a good idea to keep the whole metric.

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