How do Prometheus and Alertmanager communicate about alert resolution?
AdvancedConceptAlertmanager & Alerting
Answer
Prometheus resends firing alerts every evaluation (at least every --rules.alert.resend-delay, default 1m) with an endsAt set a few intervals in the future (4 x resend delay or evaluation interval). When the alert resolves, Prometheus sends it once more with endsAt = now.
If Prometheus dies, Alertmanager stops receiving updates and auto-resolves alerts once endsAt passes. That is why a dead Prometheus can cause "resolved" notifications, and why you need the Watchdog alert.
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