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 →

  1. Define SLOs (availability, latency) per journey with the product owner.
  2. Write recording rules for all windows and four burn-rate alerts (two page, two ticket).
  3. Add a small set of predictive cause alerts with clear deadlines: certificate expiry, disk full in 4 hours, DLQ growing.
  4. Add a traffic-drop alert and an absent() alert for the metrics.
  5. Write a runbook for each alert before enabling it.
  6. 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.

All SRE & Reliability questions

More on Alerting & On-Call