I’m trying to visualize several Prometheus “info” metrics on a state timeline. I found a config that works, but it seems rather clunky so I’m wondering if there is a better way.
To clarify — these are info metrics, meaning the value is always 1 and the interesting data is in the label whose name matches the metric name.
To build this panel, I have 6 queries like audioInputName{instance="$lyngdorf_avr_ip"}
, etc. I set the query type to “table” and the format to “range”. Then I use a “merge series/tables” transformation, followed by “organize fields by name” to hide all the values and excess labels.
Which part is clunky? I think what you have is very good
You could also use html and carve it real nice using CSS
An example
The part that bugs me is going through the organize transformation and clicking all the values, I was just hoping there’s a way to make that happen automatically. Like a way to tell Grafana to treat these as info metrics where the value doesn’t matter. Not a big deal though.
I didn’t know you could use CSS in Grafana like that! That’s very cool, although I probably won’t have time to get that fancy, I still have hundreds more dashboards to build first.
1 Like
Yeah it would have been a cool feature that would allow, show these only instead don’t show these which in your case is a lot of fields