This blog post states that it’s possible to use enums in the State Timeline panel since Grafana 10.3. However I cannot get it running with my Prometheus Enum data. Unfortunately I cannot find any other resources how this needs to be used, the video only really shortly shows the usage of static JSON data as an input.
My data looks like this (example taken from a discussion about this same topic in the windows_exporter issues):
# HELP windows_service_state The state of the service (State)
# TYPE windows_service_state gauge
windows_service_state{name="w32time",state="continue pending"} 0
windows_service_state{name="w32time",state="pause pending"} 0
windows_service_state{name="w32time",state="paused"} 0
windows_service_state{name="w32time",state="running"} 1
windows_service_state{name="w32time",state="start pending"} 0
windows_service_state{name="w32time",state="stop pending"} 0
windows_service_state{name="w32time",state="stopped"} 0
windows_service_state{name="w32time",state="unknown"} 0
windows_service_state{name="w3svc",state="continue pending"} 0
windows_service_state{name="w3svc",state="pause pending"} 0
windows_service_state{name="w3svc",state="paused"} 0
windows_service_state{name="w3svc",state="running"} 1
windows_service_state{name="w3svc",state="start pending"} 0
windows_service_state{name="w3svc",state="stop pending"} 0
windows_service_state{name="w3svc",state="stopped"} 0
windows_service_state{name="w3svc",state="unknown"} 0
I would like the panel to show two rows: w32time and w3svc. The color of the timeline should change according to the state the service is in: running would be green, stopped would be red etc.


