Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Enabled ENUM sensors #7
Hi Martin - thanks for your contribution.
Regarding the labels of the metrics, I'd sooner add a label with the name of the enum item and value 1
it would be
What do you think?
Yes, I am using it already with an own docker image on my rpi
Having all enum values and the selected index will allow queries to be way simpler using enum/value mapping in grafana later on. One con is that it won't adapt well for changing enums, but I consider that a very rare case.
As far as I understand StateSetMetricFamily has to be used to generate your intended result?