You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this project and it's great. It's exactly what I need for my project in which I'm receiving json messages over MQTT.
The problem I'm facing, is that I cannot extract any additional attributes on top of the numeric value.
For simplicity of the example let's imagine my MQTT data looks like this
someAttribute=A;val=123
(in reality it's json but this regex will be simpler)
File "C:\k\temp\git_projects\mqtt_exporter\mqtt_exporter.py", line 384, in _export_to_prometheus
prometheus_metric.update(label_values, value)
File "C:\k\temp\git_projects\mqtt_exporter\mqtt_exporter.py", line 450, in update
child = self.metric.labels(*label_values)
File "C:\Users\toadc\AppData\Local\Programs\Python\Python310\lib\site-packages\prometheus_client\metrics.py", line 164, in labels
raise ValueError('Incorrect label count')
even though, I can see in the debug logs that the conversion was successful
The text was updated successfully, but these errors were encountered:
Hello,
I came across this project and it's great. It's exactly what I need for my project in which I'm receiving json messages over MQTT.
The problem I'm facing, is that I cannot extract any additional attributes on top of the numeric value.
For simplicity of the example let's imagine my MQTT data looks like this
someAttribute=A;val=123
(in reality it's json but this regex will be simpler)
This works:
This doesn't work:
and I get
even though, I can see in the debug logs that the conversion was successful
The text was updated successfully, but these errors were encountered: