Gauge panel to display even when 'No data'

I am trying to calculate the percentage of healthy servers in my data, based on the CPU usage.

Let’s say none of the servers have a CPU usage > 90, I get no results from my InfluxDB query. My gauge in grafana displays 'No data". How can I get it to display 100% with the current gauge thresholds.

I use an approach described here.

I.e. make my query to return dummy data if there is no real data.

1 Like