I have a stat panel that is pulling data from an Influxdb that is being updated every 1s. It’s using this Flux query:
from(bucket: v.bucket) |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => r["Metric"] == "fMeasure") |> filter(fn: (r) => r["_field"] == "value") |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: true)
This works, I get a stat panel value and also the underlying graph:
As soon as I change the calculation from ‘last value’ to ‘last non-null value’ I start to get flashes of ‘no data’.
If I switch the stat panel to a line graph and look at the underlying data I have no blank periods so I know the data is there.
There’s 3 stats/graphs (not sure how to word this) in the panel and it is always the right hand two that flash up ‘no data’. It feels like it could be a processing performance thing, rather than a lack of data? i.e. it processes the stat graphs from left to right and it’s always the right hand graphs that seem to have an issue.