I recently upgraded to 4.6.3 (from 4.2.0) and have noticed an issue with the SingleStat panel. I am trying to understand if this was a deliberate change and when/why it happened or if this is a bug. I tried to look thru all the release notes but I did not see any reference to this.
I am using influx and am getting a count of alerts. If this count is zero influx sends a null value which I have mapped to “0” in the panel config. I was then able to set a threshold of 1,1 to show zero as green and any value above zero as red.
This no longer works in 4.6.3 for some reason. Can anyone provide any guidance here?
This is how I workaround this issue: maxSeries(ORIGINAL_SERIES, scale(timeFunction(“a”), 0))
So this eliminates the null values.
Then I add value mapping accordingly.
Yes, you are right. It is Metrictank / Graphite data source. I would like to offer my help in Prometheus Data sourcer. Could you please share details the issue in Prometheus? in Prometheus it should be easier to solve.
for example a single-stat panel with up metric: up{instance="machine01:9021"}
when the value is “1” it means the server is running. in that case, it’s easy to map the value to string “UP” and set threshold color green. but in case that there is no data, you’d see the string “no value” and this can’t be mapped to numerical value so that the thresholds be able to change the panel color.