2023-04-27

Change color of panel based on label in Grafana

I would like to change the color of my panel based on the panel title. I have a simple visualization of the tally of healthy and unhealthy.

The word "healthy" in the panel title is a dynamic value determined by a variable name $status.

I made it dynamic by

However, I want to change the color of the background if the value of $status is unhealthy.

Something, like this

enter image description here

I tried to do it by value mapping but nothing is happening. Is this possible to do?



No comments:

Post a Comment