简体   繁体   中英

Alerts repeating within minutes using Grafana Alerting

Using Grafana 9.2.2 with VictoriaMetrics as data source to send alerts when certain criteria is met. Using an external service to deliver alerts by configuring an API as webhook contact point, over which the payload is sent and processed further to be delivered on Slack.

Alert evaluation behaviour is set as - Evaluate every 1h for 0s . Want the alert to be fired as soon as condition is met, and evaluate every 1h because that is the frequency of new data points.

Expected behaviour : Alert once every 24hours after the condition is met.

Actual behaviour : once the condition is met, alert gets triggered ( as it should). However, the same alert gets sent again within 5 minutes.

How to handle this?

Options tried:

  1. Notification policy timings - played around with grouping interval, repeat interval and wait time, while grouping using alertname and grafana-folder , didn't help. Also, I tried to group using alert_uid but that did not get interpreted. Am I trying to wrong combination of timings ( clubbed with alert evaluation behaviour period).
  2. Do I need to send an acknowledgment back to Grafana after receiving the payload? If so, please share how or link any document you can find. I haven't been able to find anything that answers yes/no and how. I have isolated the issue to Grafana, the API to trigger is getting called twice.
  3. There are options to Mute and/or Silence an alert. Is that the approach to be followed here? If yes, should the alert be muted for 24hrs(since do not want to repeat for another 24hrs) after being fired once?

Thanks. Much appreciated.

The issue was multiple instances of Grafana running independently of each other. We had 2 pods of Grafana running, and they were both serving the request, hence the duplication. Need to check how to run Grafana in cluster mode for future.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM