-
What Grafana version and what operating system are you using?
Grafana v10.2.3 -
What are you trying to achieve?
See same result as on my other dashboard -
How are you trying to achieve it?
I copy the exact same query , the only change is that I chage “r.host =~ /^$host$/” to “r.host == “Tower”” .
I also enabled in the “Time Series” visualisation option Last* that excludes null values
-
What happened?
As shown on screenshot, every X seconds I get empty values and the graph looks different than on the other dashboard.
Left is new dashboard, right is existing one. Both use same influxdb datasource
-
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
I dont get any errors
Query I use:
from(bucket: "telegraf")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) =>
r._measurement == "docker_container_mem" and
r._field == "usage" and
r.host =~ /^$host$/
)
|> map(fn: (r) => ({ _value: r._value / $cpucores, _time: r._time, _field: r.container_name }))
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> yield(name: "last")