Interview Prep/DevOps Fundamentals/Reliability, monitoring & incidents

What makes a good alert? How do you avoid alert fatigue?

BeginnerConceptReliability, monitoring & incidents
Answer

In one line: A good alert fires only when a human needs to take action, points to a real user-facing problem, and tells the on-call engineer what to do; alert fatigue happens when people get so many noisy alerts that they start ignoring them.

Signs of a bad alerting setup:

  • Hundreds of alerts a week, most of which "fix themselves".
  • Alerts for every CPU spike above 80%.
  • The same incident triggers 30 alerts at once.
  • Engineers mute channels or ignore pages.

Principles of good alerts:

  1. Actionable — if nobody needs to do anything, it shouldn't page anyone. Make it a dashboard or a ticket instead.
  2. Symptom-based — alert on what users feel (error rate, latency, SLO burn), not every possible cause.
  3. Urgency levels — page (wake someone up) only for urgent customer impact; ticket/notification for things that can wait until working hours (disk at 75%, certificate expiring in 20 days).
  4. Avoid flapping — use a for duration so brief spikes don't fire:
    - alert: HighErrorRate
      expr: |
        sum(rate(http_requests_total{status=~"5.."}[5m]))
          / sum(rate(http_requests_total[5m])) > 0.02
      for: 10m
      labels: { severity: page }
      annotations:
        summary: "Orders API 5xx rate above 2% for 10 minutes"
        runbook_url: "https://wiki.example.com/runbooks/orders-5xx"
    
  5. Runbook link in every alert, explaining what to check and how to fix it.
  6. Group and de-duplicate — Alertmanager grouping and inhibition rules so one outage doesn't send 50 pages.
  7. Review regularly — after each on-call week, delete or tune alerts that weren't useful. Track noisy alerts as tech debt.

Example: a team got 120 alerts a week. They removed CPU and memory pages, added SLO burn-rate alerts and grouped related alerts. Pages dropped to about 8 a week, and every one needed action.

Tip for interviews: say "every page must be urgent, actionable and user-impacting" and give a before/after example.

All DevOps Fundamentals questions

More on Reliability, monitoring & incidents