All guides

Alert fatigue: page a person only when a person is needed

Google's SRE book describes how alert fatigue happens: when pages occur too frequently, people second-guess, skim or ignore them. Its answer is a short list of what may page a person.

A desk with two monitors showing code

What a page means

Google's SRE book allows a monitoring system three kinds of output:

  • Alerts: a human needs to take action immediately, on something that is happening or about to happen.
  • Tickets: a human needs to take action, but not immediately. If the action comes within a few days, no damage results.
  • Logging: no one needs to look at it. It is recorded for diagnostic or forensic purposes.

The book sets a standard for a page:

  • Every page is actionable.
  • Every page response requires intelligence. A page that merits a robotic response should not be a page.
  • A page is about a novel problem or an event that has not been seen before.
  • A person can react with a sense of urgency only a few times a day before becoming fatigued.

Page, ticket or dashboard

The SRE workbook recommends checking your current paging setup to see whether everything that pages should page. It names two alternatives: automated repair, and a ticket when the issue is not high priority. Its examples of response times range from 5 minutes for a revenue-impacting network outage to a ticket for failing backups of a database for a pre-launch service.

The SRE book gives questions to ask of each rule:

  1. Whether it detects a condition that is urgent, actionable and actively or imminently visible to users.
  2. Whether you could ever ignore the alert, knowing it is benign.
  3. Whether the action is urgent or could wait until morning, and whether it could be safely automated.
  4. Whether other people are paged for the same issue.

Keep detail about causes on dashboards. The Prometheus alerting practices pair the two: alert on symptoms, and have good consoles for pinpointing causes.

Symptom-based alerts

The Prometheus alerting practices ask for as few alerts as possible, on symptoms associated with end-user pain. For online serving systems they say to page on user-visible errors, and on latency at one point in the stack only.

According to the SRE book, a paging alert belongs to a symptom that puts a service's SLO at risk. For causes, it says to worry only about the very definite and very imminent ones.

The workbook adds that with SLO-based and symptom-based alerting, relaxing a threshold is rarely an appropriate response to being paged.

Durations, grouping and inhibition

  • Durations. In a Prometheus rule, for makes the alert wait until the expression has held for that long. The Prometheus practices say to allow for slack, to accommodate small blips. keep_firing_for keeps an alert firing for a set time after the condition clears, against flapping.
  • Grouping. Alertmanager batches alerts that share the group_by labels into one notification. The SRE book asks for noisy alerts to be tuned toward a 1:1 ratio of alerts to incidents.
  • Inhibition. Alertmanager mutes one set of alerts while an alert from another set exists.

This excerpt is from the example configuration in the Alertmanager repository, with comments, other routes and other sections left out:

YAML

route:
  group_by: ['alertname', 'cluster', 'service']
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 3h
  receiver: team-X-mails
  routes:
    - matchers:
        - service="files"
      receiver: team-Y-mails
      routes:
        - matchers:
            - severity="critical"
          receiver: team-Y-pager

inhibit_rules:
  - source_matchers: [severity="critical"]
    target_matchers: [severity="warning"]
    equal: [alertname, cluster, service]

Alerts for the files service go to that team's mail and the critical ones to its pager. A critical alert mutes the warning with the same alert name, cluster and service. The timings are the example file's values.

An owner and a runbook

Alertmanager routes on labels. Another route in the same example file sends alerts labeled owner="team-X" to that team's pager. Put such a label on every rule.

The SRE workbook says each alert should have a corresponding playbook entry, which explains the severity and impact of the alert and includes debugging suggestions and actions to mitigate.

The workbook treats a new alert like new code: the whole team reviews it. It is tested before it may page, for example by emailing its author when it fires, and the workbook names a week as the test period.

A review after every shift

In the workbook's example, the on-call engineer emails a handoff to the next engineer at the end of each shift. Use it to list the shift's pages, and put the book's four questions to each.

The workbook says to aim to identify the root cause of every page, so that it can be fixed and does not page a colleague again.

Count the pages. The workbook defines pager load as the number of paging incidents an on-call engineer receives over a shift. Google targets a maximum of two incidents per on-call shift, to leave adequate time for follow-up. The workbook finds a 21-day trailing average useful for the trend.

Alerts to delete

The SRE book names what should go:

  • Alerting configuration that is rarely exercised. Its example is less than once a quarter, for some SRE teams.
  • Signals that are collected but shown on no dashboard and used by no alert.
  • A page with a robotic response. When the root cause cannot be eliminated, the book says the response deserves to be fully automated.
  • A second page for an issue that already pages someone else.

Sources

Want a second pair of eyes on yours? We do this work for a living.

Book a call

More guides