I’ve been tinkering with Grafana for a few days now and had the alerting working at some point. I even see the alerts as annotations in the graphs. But for some reason I made it stop working and all I can receive right now are [OK] and [Testing] messages. Completely puzzled how I broke it…
I use an InfluxDB for my data and have the following Flux query:
from(bucket: "fivem-server-logs") |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => r["event"] == "playerDropped") |> keep(columns: ["_time", "event", "_value"]) |> aggregateWindow(every: 1m, fn: count, createEmpty: true) |> yield(name: "dropped")
And these are my alerting settings
As you can see here, the alerts do register, but only the [OK] events are sent out to the Discord channel.