Christian01
Christian01

Reputation: 581

Why do I get no data from the same influx query in alert rule as in the dashboard?

I create a Grafana Visu with the following influx query:

import "math"
from(bucket: "IoT")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["host"] == "0a1d52e4da06")
  |> sort(columns: ["_time"], desc: true)
  |> elapsed(unit: 1s)
  |> filter(fn: (r) => r["_value"] == false)
  |> keep(columns: ["elapsed", "_time"])

enter image description here

Now, I want to create an alert rule and starts with the same query, but I get no data:

enter image description here

Why do I get data for the time-series graph, but not for the alert rule?

Upvotes: 0

Views: 37

Answers (0)

Related Questions