What is Alertmanager, and what does it handle that Prometheus does not? [Basic]
Answer
Alertmanager receives alerts from Prometheus and handles deduplication, grouping, routing, silencing, inhibition, and notification delivery. Prometheus detects alert conditions; Alertmanager decides how and when people are notified.
Technical explanation
Routing sends alerts to teams or tools based on labels such as service, team, severity, and environment.
Grouping prevents a flood of separate notifications for related alerts.
Silencing and inhibition suppress expected or redundant alerts without changing alert rules.
Hands-on example
Hands-on: add labels team='payments' and severity='page' to a Prometheus alert. Configure Alertmanager to route team='payments' to the payments PagerDuty receiver, group by alertname and service, and inhibit lower-severity pod alerts when a service-level page is firing.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Observability interview questions
- What is an alerting rule, and how does it differ from a recording rule? [Basic]
- What is a recording rule, and when would you use one? [Basic]
- How does Prometheus handle high cardinality, and why is it a problem? [Intermediate]
- How do you compute a 95th percentile latency from a histogram in PromQL (histogram_quantile)? [Basic]
- What is the difference between rate() and irate()? [Basic]
- How does Prometheus storage (TSDB) work, and what is the retention model? [Intermediate]
- What is PromQL, and what is an instant vector versus a range vector? [Basic]
- What is the difference between Thanos and Cortex/Mimir at a high level? [Intermediate]