I have a measurement device that I can query over telnet
with prometheus_client in python. I can report the value so Prometheus
can see it, but when I try to report the status (connected/not
connected) I somehow see both states at the same time?
The python
script is attached, and what I see in the Prometheus web console: https://imgur.com/a/ZFo8GnT
Grafana also shows two solid lines for 0 and 1 for all times.
What am I doing wrong with the prometheus_client.Enum?