How does Alertmanager clustering work, and what are the rules for running it HA?
IntermediateProductionScaling Prometheus, Long-Term Storage & HA
Answer
Alertmanager replicas gossip notification state and silences (memberlist on port 9094). Every Prometheus sends every alert to all replicas (never through a load balancer); the replicas coordinate so only one sends each notification.
alertmanager --cluster.listen-address=0.0.0.0:9094 \
--cluster.peer=alertmanager-0.alertmanager:9094 \
--cluster.peer=alertmanager-1.alertmanager:9094
Run three replicas across zones, check alertmanager_cluster_members and alertmanager_cluster_failed_peers. A network partition can cause duplicate notifications, which is acceptable; missing ones are not.
More on Scaling Prometheus, Long-Term Storage & HA
What are the practical limits of a single Prometheus server?IntermediateWhen does hierarchical federation still make sense?IntermediateHow do you shard Prometheus scraping, and what do you lose?AdvancedCompare Thanos, Grafana Mimir and VictoriaMetrics.AdvancedThanos sidecar versus Thanos Receive: how do you choose?AdvancedWhat is Prometheus agent mode and when do you use it?Intermediate