How does Alertmanager clustering work?
AdvancedConceptAlertmanager & Alerting
Answer
Multiple Alertmanager instances form a cluster using a gossip protocol (memberlist, port 9094) to share notification log and silences. Prometheus sends every alert to all instances (not via a load balancer). Each instance waits a position-based delay (--cluster.peer-timeout, 15s per peer index) and checks the shared notification log before sending, so only one notifies.
alertmanager --cluster.peer=am-0:9094 --cluster.peer=am-1:9094 --cluster.peer=am-2:9094
Behind a load balancer, dedup breaks and silences may not apply.
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