Interview Prep/Monitoring & Observability/Scaling Prometheus, Long-Term Storage & HA

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.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Scaling Prometheus, Long-Term Storage & HA