Interview Prep/Monitoring & Observability/Alerting and On-Call Design

You are asked to design alerting for a brand-new HTTP service from scratch. What do you alert on?

BeginnerScenarioAlerting and On-Call Design
Answer

Situation read → No history, so start from the golden signals and keep the first set small.

What I'd do →

  1. Page on error ratio (5xx / total) and latency (p99 over threshold) at the load balancer or service level.
  2. Page on availability from an external blackbox probe.
  3. Add saturation warnings (queue depth, connection pool, disk) as tickets, not pages.
  4. Attach severity, team, runbook_url and a clear summary to each rule.
  5. Tune after two weeks of real data.
- alert: HighErrorRatio
  expr: sum(rate(http_requests_total{job="api",code=~"5.."}[5m])) / sum(rate(http_requests_total{job="api"}[5m])) > 0.05
  for: 10m
  labels: {severity: page, team: payments}
  annotations: {summary: "API 5xx ratio above 5%", runbook_url: "https://runbooks.example.com/api-5xx"}

Why → Golden signals map to what users feel. Infrastructure metrics are for diagnosis.

Interview tip → Name the four golden signals (latency, traffic, errors, saturation) and say which of them page.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Alerting and On-Call Design