Volume 6 · Chapter 4 — Observability and Operations
Alarms and Alerting
4.1 Introduction
Metrics and logs are only useful if someone acts on problems, and you can’t watch dashboards all day - so alarms automatically notify you when something needs attention. CloudWatch Alarms watch metrics and trigger when a condition is met, driving notifications and even automated responses. But alerting done badly is worse than useless: too many noisy alerts cause fatigue and real problems get missed. This chapter covers how alarms work and, crucially, how to alert well - on meaningful, actionable conditions - which is a frequent operational and interview topic.
4.2 How Alarms Work
A CloudWatch Alarm watches a metric and changes state based on a threshold you define - for example, “error rate above 1% for 5 minutes” or “p99 latency above 2 seconds.” When the metric breaches the condition for the specified duration, the alarm enters an alarm state and triggers actions: sending a notification (via SNS to email, chat, or a paging system), or triggering an automated response like an auto-scaling action. The duration and datapoint requirements matter - requiring the condition to hold for a period avoids alarming on a momentary blip. Alarms are the mechanism that turns passive metrics into active notification, so a problem reaches a human (or an automated fix) promptly rather than waiting to be noticed on a dashboard.
flowchart LR
Metric[Metric e.g. error rate] --> Alarm{Threshold breached\nfor N minutes?}
Alarm -->|Yes| SNS[SNS notification]
SNS --> Page[Paging / on-call]
SNS --> Chat[Team chat]
Alarm -->|Yes| Auto[Automated action\ne.g. scale out]
Alarm -->|No| OK[OK state - no noise] 4.3 Alerting on the Right Things
The art of alerting is choosing what to alert on. The best alerts are on symptoms that matter to users - elevated error rate, high latency, a drop in a business metric like payment success rate - because these directly indicate customer impact, rather than on every low-level cause. Alerting on causes (like high CPU) can be noisy and misleading, since high CPU might be fine if users are unaffected; alerting on the user-facing symptom catches real problems regardless of the underlying cause. A useful principle is to alert on conditions that are urgent and actionable - something a human needs to do something about now - and to route less-urgent conditions to dashboards or tickets rather than pages. This keeps alerts meaningful.
4.4 Avoiding Alert Fatigue
Alert fatigue is the operational killer: when there are too many alerts, especially non-actionable or false-positive ones, people start ignoring them, and real problems get lost in the noise. The consequences are serious - a genuine outage alert buried among dozens of meaningless ones gets missed. Preventing fatigue means being disciplined: alert only on meaningful, actionable conditions; tune thresholds and durations so you don’t fire on transient blips; avoid alerting on every metric; consolidate related alerts; and continuously prune alerts that fire without anyone needing to act. Every alert should be something a person genuinely needs to respond to. A smaller number of high-quality, actionable alerts is far more effective than a flood, because it preserves the signal that makes people respond when it matters.
4.5 Severity, Routing, and Automated Response
Good alerting also distinguishes severity and routes accordingly. Critical, user-impacting issues page the on-call engineer immediately; lower-severity issues go to a channel or ticket for attention during business hours - so people are woken only for genuine emergencies. Some conditions warrant automated response rather than a human: high load triggering auto-scaling, or a failed health check triggering instance replacement, so the system self-heals without paging anyone. The mature model is a tiered response: automated remediation where possible, immediate paging for critical user-impacting problems, and lower-urgency routing for everything else - so human attention is reserved for what truly needs it, and the system handles routine issues itself.
4.6 Banking Production Scenario
A bank alerts primarily on user-facing symptoms: payment success rate dropping below a threshold, error rate elevated, or p99 latency exceeding its target - each indicating real customer impact. These critical alerts page the on-call engineer immediately via SNS to a paging system. Lower-severity conditions route to a team chat channel for business-hours attention. Routine load is handled by auto-scaling rather than alerts, and failed health checks trigger automatic instance replacement - self-healing without paging. The team regularly prunes alerts that fired without needing action, keeping the alert set small and meaningful so on-call engineers trust every page. The result: genuine problems reach a human in seconds, routine issues are handled automatically, and alert fatigue is avoided so nothing important is lost in noise.
4.7 Troubleshooting: Alerting Problems
Alerting problems fall into two opposite failures. Too few or no alerts means you learn about outages from customers - the fix is alerting on the key user-facing symptoms (error rate, latency, business metrics) so problems are caught proactively. Too many alerts means fatigue, and real issues get ignored - the fix is ruthless pruning to only actionable conditions, tuning thresholds and durations to avoid transient-blip firing, consolidating related alerts, and moving non-urgent conditions off paging. Alerts that fire on causes (high CPU) but not on impact should be refocused on symptoms. Alerts nobody acts on should be removed. Missing severity routing means people are paged for non-emergencies - add severity tiers so only critical issues page. The discipline is a small set of meaningful, actionable, severity-routed alerts on user-facing symptoms, with automation handling routine self-healing.
How do you design effective alerting and avoid alert fatigue?
Effective alerting is about alerting on the right things in the right way so that every alert is meaningful and actionable, and avoiding alert fatigue is central to that because bad alerting is worse than none. The foundation is what you alert on: the best alerts are on symptoms that matter to users - elevated error rate, high latency (measured at percentiles), or a drop in a business metric like payment success rate - because these directly indicate customer impact. I prefer alerting on these user-facing symptoms rather than on every low-level cause, because alerting on causes like high CPU is often noisy and misleading - high CPU might be completely fine if users are unaffected - whereas alerting on the symptom catches real problems regardless of the underlying cause. A guiding principle is to alert only on conditions that are urgent and actionable: something a human genuinely needs to do something about now. Everything less urgent should go to a dashboard or a ticket, not a page. Alert fatigue is the key thing to avoid: when there are too many alerts - especially non-actionable or false-positive ones - people start ignoring them, and a genuine outage alert gets lost among the noise, which is exactly how real incidents get missed. To prevent it, I’m disciplined: alert only on meaningful, actionable conditions; tune thresholds and durations so alarms don’t fire on momentary blips (requiring a condition to hold for a period); avoid alerting on every metric; consolidate related alerts so one problem doesn’t generate a storm; and continuously prune any alert that fires without anyone needing to act. Every alert should demand a response. I also design severity and routing: critical, user-impacting issues page the on-call engineer immediately, while lower-severity issues go to a chat channel or ticket for business-hours attention, so people are woken only for genuine emergencies. And I use automated response where possible instead of paging a human - high load triggering auto-scaling, a failed health check triggering instance replacement - so the system self-heals for routine issues and human attention is reserved for what truly needs it. The result is a small set of high-quality, actionable, severity-routed alerts focused on user-facing symptoms, backed by automation for routine self-healing. That’s far more effective than a flood of alerts, because it preserves the signal: when a page fires, the on-call engineer trusts it’s real and responds, which is the entire point of alerting and impossible to achieve if fatigue has trained people to ignore the noise.
Chapter Revision Notes
- A CloudWatch Alarm watches a metric against a threshold for a duration and triggers notifications (via SNS) or automated actions.
- Alert on user-facing symptoms (error rate, latency percentiles, business metrics) rather than every low-level cause.
- Alert fatigue - too many noisy/non-actionable alerts - causes real problems to be missed; every alert must be actionable.
- Prevent fatigue: prune non-actionable alerts, tune thresholds/durations, consolidate, and move non-urgent conditions off paging.
- Use severity routing (page critical, channel/ticket for the rest) and automated self-healing for routine issues.