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

Metrics to Topic Fanout #18

Closed
skobow opened this issue May 2, 2024 · 0 comments · Fixed by #19
Closed

Metrics to Topic Fanout #18

skobow opened this issue May 2, 2024 · 0 comments · Fixed by #19
Assignees

Comments

@skobow
Copy link
Contributor

skobow commented May 2, 2024

This feature enables re-publishing metrics of Sparkplug Data messages to dedicated topics.

When receiving a data message on spBv1.0/DairyPlant/NDATA/Refrigeration each metric will be republished on a corresponding topic:

{
        "timestamp": 1486144502122,
        "metrics": [{
            "name": "Inputs/Temperature",
            "timestamp": 1486144502122,
            "dataType": "Float",
            "value": 29.2
}, {
            "name": "Inputs/Humidity",
            "timestamp": 1486144502122,
            "dataType": "Float",
            "value": 55.9
}],
    "seq": 0
}

The first metric will be published on spBv1.0/DairyPlant/NDATA/Refrigeration/Inputs/Temperature:

{
            "name": "Inputs/Temperature",
            "timestamp": 1486144502122,
            "dataType": "Float",
            "value": 29.2
}

The second metric will be published on: spBv1.0/DairyPlant/NDATA/Refrigeration/Inputs/Humidity

{
            "name": "Inputs/Humidity",
            "timestamp": 1486144502122,
            "dataType": "Float",
            "value": 55.9
}
@skobow skobow self-assigned this May 15, 2024
@skobow skobow linked a pull request May 16, 2024 that will close this issue
skobow added a commit that referenced this issue May 16, 2024
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

Successfully merging a pull request may close this issue.

1 participant