Hello Grafana Community,
I’m encountering an issue with an alert rule I’ve set up in Grafana, and I’m hoping for some guidance.
Here’s my setup:
- I’ve configured an alert to trigger if the current (
CURRENT
) exceeds 12. - Additionally, I’ve added two conditions:
on_off
must betrue
.LIGNE_EN_MARCHE
must beACTIVE
.
Here’s the query I’m using for the alert:
SELECT mean(“CURRENT”) FROM “autogen”.“m1_262_383_813”
WHERE “on_off” = ‘true’ AND “LIGNE_EN_MARCHE” = ‘ACTIVE’ AND “CURRENT” > 0
GROUP BY time(2s)
The issue is that the alert gets triggered even when on_off = false
or LIGNE_EN_MARCHE = 'STOPPED'
. I’ve verified that the data in the time series reflects these values correctly, so I suspect the issue might be with how the alert conditions are evaluated.
Has anyone encountered a similar issue? Is there something I’m missing in how Grafana evaluates multiple conditions in an alert rule?
Any advice or suggestions would be greatly appreciated!
Thank you in advance!