How do you reduce duplicate notifications when the same alert fires from multiple clusters?
AdvancedConceptAlertmanager & Alerting
Answer
Alerts are identical (and deduplicated) only if their full label sets match. Each cluster's Prometheus adds cluster via external_labels, so the alerts are distinct by design. Options:
- If the alert is truly global (for example a shared external API), evaluate it once in a global ruler (Thanos Ruler or Mimir ruler) instead of per cluster.
- Group by
alertnameonly for that route so one notification lists all clusters. - Use
alert_relabel_configsto drop thereplicalabel so HA pairs dedupe correctly.
More on Alertmanager & Alerting
What does Alertmanager do that Prometheus does not?BeginnerExplain the Alertmanager routing tree.IntermediateWhat do `group_by`, `group_wait`, `group_interval` and `repeat_interval` control?IntermediateWhat is inhibition? Give an example.IntermediateWhat are silences and how do you create them?BeginnerWhat are mute time intervals and active time intervals?Intermediate