-
Notifications
You must be signed in to change notification settings - Fork 69
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
Map json prop as labels #74
Comments
I can relate to that use case. I welcome a PR adding this functionality. If I have enough spare time, I may implement it myself, but I can not give any time estimates on that. |
I don't have much experience with Go but I can try to give it a shot if I get a chance.. |
Hi all! Great work with this exporter, I'm looking for several options to export MQTT JSON objects to Prometheus and this is promising. This feature would be a deal breaker for us indeed! My use case is regarding frame inference results from DLStreamer pipeline server. Each inference pipeline published into its own topic, easily configurable on pipeline execution; an example of an output payload for a topic named {
"objects": [
{
"detection": {
"bounding_box": {
"x_max": 0.18579910695552826,
"x_min": 0.16391132771968842,
"y_max": 0.7926501631736755,
"y_min": 0.6738967299461365
},
"confidence": 0.6267059445381165,
"label": "person",
"label_id": 1
},
"h": 86,
"region_id": 526533,
"roi_type": "person",
"w": 28,
"x": 210,
"y": 485
},
{
"detection": {
"bounding_box": {
"x_max": 0.16837865114212036,
"x_min": 0.08635252714157104,
"y_max": 0.8236457109451294,
"y_min": 0.7092335224151611
},
"confidence": 0.9996802806854248,
"label": "vehicle",
"label_id": 2
},
"h": 82,
"region_id": 526534,
"roi_type": "vehicle",
"w": 105,
"x": 111,
"y": 511
},
{
"detection": {
"bounding_box": {
"x_max": 0.31999629735946655,
"x_min": 0.22663737833499908,
"y_max": 0.7987639904022217,
"y_min": 0.6771434545516968
},
"confidence": 0.9921255707740784,
"label": "vehicle",
"label_id": 2
},
"h": 88,
"region_id": 526535,
"roi_type": "vehicle",
"w": 119,
"x": 290,
"y": 488
}
],
"resolution": {
"height": 720,
"width": 1280
},
"timestamp": 217375761000
}
Where:
Simplifying the use-case as much as possible, I'd say that a good starting point would be to be able to label the pipeline name, the pipeline type and retrieve as metrics both the Each inference model pipeline outputs a different JSON payload, but for the time being I'm using this as an example of what would be our needs in terms of extracting metrics and labels from it. I'd gladly collaborate with a PR if you can guide me on the best way to approach this and can weight the complexity of implementing this (it might be too much in a single PR). Bear with me as Go is not a programming language I'm familiar with. Let me know your thoughts on this use case scenario, thanks! |
Hi,
It would be nice to be able to map some properties as labels to help identify devices which publish to a single topic.
I have a use case with
rtl_433
which is collecting weather station data into a single topic atrtl_433/{hostname}/events
Here is an example json:
It would be useful to be able to map
id
ormodel
to labels to help identify the device event.The text was updated successfully, but these errors were encountered: