You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Repeated Alertmanager/Grafana notifications create duplicate incidents and can re-apply fixes #124
/webhook/alertmanager and /webhook/grafana create a new incident for every firing alert in every delivery (api/server.py, _alert_context → enqueue_incident). Nothing deduplicates on the alert's identity.
Alertmanager and Grafana re-send the same firing alert many times:
every group_interval when anything in the group changes;
every repeat_interval (default 4h) while it keeps firing;
after restarts or failovers, and when HA Alertmanager replicas each deliver.
The result is duplicate incidents for one problem. Each one runs a full diagnosis (LLM cost) and can apply the remediation again (another rollback, restart or cleanup), send duplicate Slack approvals, and escalate to PagerDuty more than once. Code reviews already got head-SHA dedupe in #104/#109; alerts have none.
Suggested fix
Use the alert's fingerprint (Alertmanager and Grafana both send it), or a hash of sorted labels when it's missing, together with startsAt as the identity.
If an incident for that identity is pending, processing, or finished within a cooldown (ALERT_DEDUPE_WINDOW_SEC, default e.g. 1h), don't enqueue. Return {"status": "duplicate", "incident_id": ...}.
Activity
Merge pull request #147 from open-devops-agent/fix/alert-dedupe-124