Change dash color when "No data"

Grafana v8.1.2 / postgresql

I created a query that returns active postgres database replications, when the pc is turned off we do not have a query return, the dashboard return is the word “No data”, it is possible to change the color of the dashboard to red when displaying "No data "??, remembering that we have no connection to the computer in this case.

If you inspect the raw query and response, or look at that panel in the table view, what is it actually returning? Like null or undefined?

You can use Grafana’s value mappings to map colors to special values like null

1 Like

Thanks for the support, the configuration worked, the example is attached

1 Like