Quantcast
Viewing all articles
Browse latest Browse all 199

Grafana should not hide Gauges with "no data"

Hello,

I have a basic question. I did not find the answer after spending some time searching for it.

I have a few gauges like this

They all use a query similar to this:
SELECT last(“value”) FROM “autogen”.“Lutz_Heiz_Status_Stellgroesse” WHERE $timeFilter GROUP BY time($__interval) fill(previous)

(to make an average of a (quasi-binary, but actually numerical) signal after forwardfilling.)

However some of the gauges are not shown here. I am talking about the ones where the query above returns “no data” → 0 results from Influx.

I want to show them as zero because that’s what it will practically mean in my case. I can’t manage to make it work. I found some ideas with the “or on() vector(0)” approach to return a zero number instead of “no data”. But I couldn’t make it work probably because it’s using a newer query language or newer features that I am not familiar with.
My task sounds simple enough, right? So I assume there is an easy solution that I am missing)

(It would show up with “no data” if I only have 1 gauge, but since I have several it “automatically” seems to hide the “no-data” ones; therefore also the “override no data” thing does not work here)

I use Grafana v11.0.0 (277ef258d4)

9 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 199

Trending Articles