How would you design alerting for a new microservice from scratch?
IntermediateScenarioAlerting & On-Call
Answer
Situation read → Start minimal and symptom-based. It is easier to add alerts than to remove noisy ones.
What I'd do →
- Define SLOs (availability, latency) per journey with the product owner.
- Write recording rules for all windows and four burn-rate alerts (two page, two ticket).
- Add a small set of predictive cause alerts with clear deadlines: certificate expiry, disk full in 4 hours, DLQ growing.
- Add a traffic-drop alert and an
absent()alert for the metrics. - Write a runbook for each alert before enabling it.
- Route via Alertmanager by severity, and review alert quality after the first month.
Why → A small number of meaningful alerts protects users and on-call health.
Interview tip → Mention "runbook before alert"; it is a strong quality gate.
More on Alerting & On-Call
On-call got 140 pages last week, most auto-resolved within 5 minutes. What's your plan?BeginnerA critical outage went unnoticed for 40 minutes until customers called support, yet you have 300 alert rules.IntermediateYour team is asked to join the on-call rotation for a service built by another team who won't share it.IntermediateAn engineer silenced a noisy alert for 30 days and an incident it would have caught happened during the silence.IntermediateThe secondary on-call is never paged, and when the primary missed a page last month, nobody responded for 50 minutes.BeginnerDevelopers complain that SRE alerts are written in PromQL they don't understand, so they ignore them.Beginner