Your Alertmanager is a single pod. How do you make it highly available without duplicate notifications?
AdvancedScenarioAlerting and On-Call Design
Answer
Situation read → One Alertmanager is a single point of failure for the entire alert path.
What I'd do →
- Run 3 Alertmanager replicas in a gossip cluster (
--cluster.peer=alertmanager-0:9094, etc.). On Kubernetes, a StatefulSet with a headless service, or the Prometheus Operatorreplicas: 3. - Configure every Prometheus to send alerts to all Alertmanagers, not through a load balancer.
- The cluster deduplicates using gossip of notification log entries, so each notification is sent once.
- Persist
/alertmanagerdata so silences survive restarts. - Monitor
alertmanager_cluster_membersandalertmanager_notifications_failed_total.
Why → Alertmanager prefers availability: during a partition you may get duplicates, but never lost alerts.
Interview tip → A common mistake is putting a load balancer in front, which breaks the deduplication model.
More on Alerting and On-Call Design
Your on-call engineers receive 300 alerts a night and have started ignoring the pager. How do you fix it?IntermediateYou are asked to design alerting for a brand-new HTTP service from scratch. What do you alert on?BeginnerA "CPU above 90%" alert wakes someone at 3 a.m., but users saw no impact. What do you change?BeginnerA new hire asks: "Should we page on symptoms or causes?" How do you answer with an example?BeginnerDesign burn-rate alerts for a 99.9% availability SLO over 30 days.AdvancedPayments and platform teams share one Prometheus and one Alertmanager. How do you route alerts to the right team and severity?Intermediate