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?



Comments

Popular posts from this blog

Spring Elasticsearch Operations

Object oriented programming concepts (OOPs)

Spring Boot and Vaadin : Filtering rows in Vaadin Grid