Alert Triggered Despite Conditions Not Being satisfied

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:
    1. on_off must be true.
    2. LIGNE_EN_MARCHE must be ACTIVE.

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!

An alert triggering despite unsatisfied conditions could be due to misconfigured thresholds, delays in data refresh, dependency issues, system bugs, data inconsistencies, or overly sensitive settings. Check the configuration, review logs for errors, and ensure no external factors are influencing the alert.

Hi,

Can you share the alert that you’ve received? Does it have No Data anywhere? Also, can you share the configuration of your alert (especially with the section from screenshot attached):