Reliability and security · L2Alerting and on-call

Alerting and on-call

Page a human only when users are hurting and a person must act now, and build an on-call rota your team can keep up for years.

L2 SeniorReliability and security19 min read
Fact-checked by AI against cited sources · Human review pendingLast reviewed 8 Nov 2026 · How we check content
Section 1 of 8

What broke

A made-up story to show a common failure. Not about a real company.

Ravi is on call for a payments team. His phone rings 23 times on Monday night. "CPU > 80% on db-replica-3." "Disk 85% on worker-7." "Queue length > 1,000." Each alert clears by itself a few minutes later.

By 2 a.m. Ravi mutes his phone. He has learned that these alerts never mean anything.

At 4:10 a.m., a bad config change makes 12% of card payments fail. There is no alert on failed payments, only on machines. The one CPU alert that fires looks like every other one.

The team finds out at 9 a.m. from support tickets. Ravi did nothing wrong. The alerts trained him to ignore them. (This story is made up, but the pattern is common.)

Section 2 of 8

The idea in simple words

Google's SRE book names three kinds of monitoring output 1. Choose one on purpose for each signal:

  • Page (an alert): wakes a person up. A human must act now, because the problem is happening or about to happen 1.
  • Ticket: goes to a queue. A human must act, but no harm is done if they act within a few days 1.
  • Log: nobody needs to look. It is kept for when you debug or investigate later 1.

Google's SRE book says your monitoring answers two questions: "what's broken, and why?" 2 The "what" is the symptom: payments fail, pages are slow. The "why" is the cause: a full disk, a hot CPU, a bad config.

Page on symptoms. Use causes to help you debug 2, for example on dashboards. The Prometheus docs give the same advice: alert on high latency and errors "as high up in the stack as possible" 5.

The book also says, "Every page should be actionable." If a page only needs a fixed, robotic response, it should not be a page 2. Automate that response instead.

The key idea. A person can react with urgency only a few times a day before they get tired 2. Every useless page spends that attention. Too many useless pages cause alert fatigue, and then real pages get missed.

Section 3 of 8

How it works

1. Ask four questions before you add a page

The SRE book gives a checklist. Here it is in short 2:

  • Does it catch something urgent, actionable and visible to users, that nothing else catches?
  • Will I ever ignore it because I know it is harmless?
  • Can I actually do something about it?
  • Is someone else already paged for the same problem?

If any answer is wrong, make it a ticket, a dashboard, or delete it.

2. Page on SLO burn rate

You already know SLOs and burn rate from Observability and SLOs. A burn-rate alert is the best symptom alert, because it measures user pain directly.

A good alert has high precision (few false pages) and high recall (few missed problems). It should also fire fast and stop fast after the fix 4. One window cannot do all four. So the SRE Workbook uses a multiwindow, multi-burn-rate design. Each rule fires only when a long and a short window both pass the same burn rate 4. For a 99.9% SLO over 30 days, it recommends 4:

Long windowShort windowBurn rateBudget spentAction
1 hour5 minutes14.42%Page
6 hours30 minutes65%Page
3 days6 hours110%Ticket

Check the first row yourself. One hour is 1/720 of 30 days. At burn rate 14.4, one hour spends 14.4 ÷ 720 = 2% of the budget. In error terms, 14.4 × 0.1% = 1.44% of requests failing.

The short window is 1/12 of the long one 4. It makes the alert stop about 5 minutes after the errors stop, not an hour later 4.

Step through a fast, a slow and a tiny burn. Use Next and Back, or the ← and → keys.

Three burn-rate rules meet a fast, a slow and a tiny burnSLO 99.9% over 30 days · budget 0.1% Three rules, each with two windowsA: 1 h and 5 min ≥ 14.4 → pageB: 6 h and 30 min ≥ 6 → pageC: 3 days and 6 h ≥ 1 → ticket Fast burn: 15% errors (burn 150)5 min window over at once · 1 h after ~6 min Rule A pagesabout 2% of the budget is spent Roll back: alert clears in ≤ 5 minthe 1 h window alone stays high much longer Slow burn: 0.8% errors (burn 8)A never fires · B pages after 4.5 h (5% spent) Tiny burn: 0.15% errors (burn 1.5)C opens a ticket after 2 days (10% spent) SeniorPath
  1. The checkout SLO allows 0.1% errors over 30 days. The team uses the three rules from the SRE Workbook. Each rule fires only when a long and a short window both pass the same burn rate.
  2. Before the deploy there were almost no errors. Now 15% of requests fail. That is a burn rate of 15 ÷ 0.1 = 150. The 5-minute error rate passes 1.44% (burn rate 14.4) within about 30 seconds. The 1-hour error rate needs about 6 minutes to reach 1.44% (1.44 ÷ 15 × 60 ≈ 5.8). The Workbook rounds this to 5 minutes.
  3. Both windows of rule A are now over 14.4, so the on-call engineer is paged. About 6 minutes at burn rate 150 spend about 2% of the 30-day budget.
  4. The engineer rolls back and errors stop. The 5-minute average drops below 14.4 within 5 minutes, so the page clears. With only the 1-hour window, the alert could keep firing for close to an hour.
  5. Another day, a bug fails 0.8% of requests. That is burn rate 8. Rule A never fires, because 8 is below 14.4. The 6-hour average reaches 0.6% after 4.5 hours, so rule B pages. By then 5% of the budget is gone.
  6. A third bug fails only 0.15% of requests: burn rate 1.5. No rule pages. After 2 days, the 3-day average passes 0.1%, so rule C opens a ticket. That is 10% of the budget, and a human can fix it in work hours.
Step 1 of 6

The cost is many numbers to manage 4. Our advice: put them in shared recording rules, not in every team's copy. With very low traffic, one failure is a large share of requests. The Workbook suggests four fixes: synthetic traffic, combining small services for alerting, changing the product so one failure matters less, or a lower SLO or longer window 4.

3. Group, route and silence

One broken network link can fire hundreds of alerts at once. Prometheus Alertmanager can group them by labels such as cluster and alertname, so you get one page, not hundreds 6. It also has inhibition: if a "cluster not reachable" alert fires, it can mute every other alert for that cluster. Silences mute alerts for a set time, for example during planned work 6.

The routing tree sends each alert to a receiver, such as PagerDuty for pages or email for less urgent alerts 6. By default, Alertmanager waits 30 seconds to gather a new group, 5 minutes before it sends updates to that group, and 4 hours before it repeats a notification 7.

Use a severity label to route. PagerDuty's own scheme has High (act now, any hour), Medium (act within 24 hours, work hours only), Low, and Notification, which never pages anyone 8.

4. Make each alert useful at 3 a.m.

PagerDuty says alerts with generic titles cause confusion. Each alert should say what is wrong and why it matters. It should also list the steps or link to a runbook 8. Prometheus adds: link to a console that shows which part is at fault 5.

Test every new alert. PagerDuty says, "An untested alert is equivalent to not having an alert at all" 8. Also check that the alert resolves by itself when the metric is normal again 8.

5. Design the rota

Google caps on-call at 25% of an SRE's time, and operations work in total at 50% 3. Say two people are always on call, a primary and a secondary, in week-long shifts. Then one site needs at least eight engineers, so each one is on call one week in four. With two sites, Google suggests at least six per site 3.

Two sites far apart can run follow-the-sun. Each team covers its own day, so nobody works night shifts, which harm health 3.

Set a load limit. Google aims for at most 2 incidents per 12-hour shift. A real incident, with its cleanup and postmortem, takes about 6 hours 3. The book's example targets for overload are fewer than 2 paging events per shift and fewer than 5 tickets a day. Noisy alerts should be tuned toward one alert per incident 3.

Typical response times at Google are 5 minutes for user-facing services and 30 minutes for less urgent ones 3. PagerDuty recommends a 5-minute timeout before a page goes to the backup. It says you sometimes cannot answer in time, and that is why there is a backup 9. At handoff, tell the next person about issues that are still open 9.

Pay for it. Google gives time off or cash for on-call hours, capped at a share of salary 3.

Section 4 of 8

Trade-offs

Rota designNight pages?People neededMain risk
One site, primary onlyYes Fewer.No backup when the primary misses a page. Burnout.
One site, primary and secondaryYes At least 8 for 25% on-call 3.Night shifts still hurt sleep and health.
Two sites, follow-the-sunNo , if the sites cover the clock.At least 6 per site 3.Handoffs between sites lose context.
Everyone on call, no rotaYes Whole team.Nobody owns the page, so everyone waits for someone else.
On-call too rare (big team, few pages)Few.Many.People forget the system. Google calls this underload 3.
Section 5 of 8

At work: how a senior uses this

  • Count two numbers every week: pages per 12-hour on-call period, and pages per real incident. A week-long rota has 14 such periods. Compare them with Google's numbers: fewer than 2 pages per shift, and close to 1 alert per incident 3.
  • Hold a short review after each shift. For each page ask: was it real, did it need a human, was the runbook right? Then fix, downgrade or delete the alert.
  • Delete alerts and dashboards nobody uses. Google says rarely used alerting is "up for removal" 2.
  • Turn repeat noise into work. PagerDuty says an alert that keeps firing for a preventable non-issue, like a disk filling up, should become a fix task 9. Many teams call this toil. Runbooks and reducing toil covers it.
  • Monitor your monitoring. Prometheus suggests alerts on Alertmanager itself and an outside blackbox check 5. At GitLab in 2017, backup failures were sent only by email. The emails were rejected because of an email setting (DMARC), so nobody knew the backups were failing 10.
  • Give the person who was up all night the morning off.
Section 6 of 8

With AI

What to ask the agent

"Here is our Alertmanager config and the last 30 days of alerts as CSV. Group the alerts by name. For each, show how often it fired, how often someone acted, and whether it is a symptom or a cause. Suggest which to delete or downgrade to a ticket."

"Write Prometheus alert rules for a 99.9% checkout SLO. Use the SRE Workbook's three multiwindow rules. Page at 14.4 over 1 h and 5 m, and at 6 over 6 h and 30 m. Open a ticket at 1 over 3 d and 6 h. Add a runbook_url and summary annotation to each."

What to check yourself

  • The burn-rate thresholds match your SLO. For 99.9%, a burn rate of 14.4 is an error rate of 1.44%. For 99.5%, the same burn rate is 7.2%.
  • Both windows in each rule use the same burn rate.
  • Every page has a runbook link that really opens, and the runbook names real commands and dashboards.
  • group_by labels make sense. Grouping by too little merges unrelated problems; grouping by too much sends hundreds of pages.
  • The agent did not add new cause alerts (CPU, disk) as pages.
Section 7 of 8

Check yourself

1. Which of these should page a human at 3 a.m.?

Show answer

8% of checkout requests have failed for the last 10 minutes. Only the checkout errors are urgent, user-visible and need a human now. The other two can be a ticket or a dashboard.

2. Your SLO is 99.9% over 30 days. An alert fires at burn rate 14.4 over 1 hour. How much of the error budget has that hour used?

Show answer

About 2% One hour is 1/720 of 30 days. 14.4 × 1/720 = 0.02, so 2% of the budget.

3. Why does a burn-rate page check a 5-minute window as well as a 1-hour window?

Show answer

So the page stops soon after the errors stop. The 1-hour average stays high long after a fix. The 5-minute average drops within minutes, so the alert clears fast.

4. Last week your on-call got 30 pages. Only 6 needed someone to act. What is the best next step?

Show answer

Fix, downgrade or delete the 24 alerts that needed no action. Google's SRE book says every page should be actionable. Noise teaches people to ignore real pages.

5. A team in one office wants a 24/7 rota where nobody is on call too often. What is the smallest size Google's SRE book suggests?

Show answer

8 engineers With on-call at most 25% of time and a primary and secondary, the book gets a minimum of eight engineers for one site.

Your progress is saved only in this browser. Export it to keep it safe.

Was this clear?
Report a mistake (opens GitHub in a new tab)
Section 8 of 8

Go deeper

Show 10 sources and related lessons
  1. Benjamin Treynor Sloss, “Introduction”, Google, Site Reliability Engineering, chapter 1 (opens in a new tab)
    The three kinds of monitoring output (alerts, tickets and logging) and what each one is for.
  2. Rob Ewaschuk, “Monitoring Distributed Systems”, Google, Site Reliability Engineering, chapter 6 (opens in a new tab)
    Symptoms against causes, the questions to ask before you add a page, and two stories of alert noise at Google.
  3. Andrea Spadaccini, “Being On-Call”, Google, Site Reliability Engineering, chapter 11 (opens in a new tab)
    Limits on on-call time and incidents per shift, team sizes, response times, pay, and overload.
  4. Google, The Site Reliability Workbook, chapter 5: Alerting on SLOs (opens in a new tab)
    Six ways to alert on an SLO, ending with multiwindow, multi-burn-rate alerts and their numbers.
  5. Prometheus documentation: Alerting (best practices) (opens in a new tab)
    Short advice to alert on symptoms, as high in the stack as possible, and to monitor your monitoring.
  6. Prometheus documentation: Alertmanager (opens in a new tab)
    What grouping, inhibition and silences do, with a network partition example.
  7. Prometheus documentation: Configuration (Alertmanager) (opens in a new tab)
    The routing tree and the timers group_wait, group_interval and repeat_interval, with their defaults.
  8. PagerDuty Incident Response documentation: Alerting Principles (opens in a new tab)
    PagerDuty's alert priorities, what each alert must contain, and why you must test alerts.
  9. PagerDuty Incident Response documentation: Being On-Call (opens in a new tab)
    Escalation timeouts, backup schedules, handoffs and how to treat noisy alerts.
  10. GitLab, “Postmortem of database outage of January 31” (opens in a new tab)
    Backup failures were reported only by email, the emails were rejected, and nobody knew.

Real incident: GitLab, 31 Jan 2017: GitLab outage: the primary database was wiped by mistake

Related: Observability, SLOs and error budgets · Incident response and postmortems · Runbooks and reducing toil · Debugging production · Safe deploys and config changes

Before this: Observability and SLOs explains SLIs, error budgets and burn rate.

Next: Incident response covers what to do after the page. Runbooks and reducing toil covers how to write runbooks and remove repeat work.

Related: Debugging production goes from a symptom to a cause. Safe deploys shows how to watch alerts during a rollout.

Term

See full entry

Jump to a section

  1. 1What broke
  2. 2The idea in simple words
  3. 3How it works
  4. 4Trade-offs
  5. 5At work
  6. 6With AI
  7. 7Check yourself
  8. 8Go deeper