Try
↑ ↓ move↵ openesc close

SLOs and burn-rate alerts lab

A 99.9 percent SLO over 30 days, simulated minute by minute, with a short outage, a slow burn and noise. Compare a threshold alert, a single-window burn-rate alert and a multi-window multi-burn-rate alert.

day 9.0 of 30budget left 73.3%SLO 99.9%, budget 43,200 failed requests

Error budget left, and when each alert fired
0%25%50%75%100%budget leftthresholdsingle windowmulti-windownoise blipsday 0day 10day 20day 30

Green bars are alerts that fired during an incident. Red bars are false alerts. The red band is the outage and the tan band is the slow burn.

Three ways to be told

Error-rate threshold

Alerts fired
3
False alerts
2
Outage caught
1 min
Budget burned
2.3%
Slow burn caught
not started
Budget burned
-

Single-window burn rate

Alerts fired
1
False alerts
0
Outage caught
1 min
Budget burned
2.3%
Slow burn caught
not started
Budget burned
-

Multi-window, multi-burn-rate

Alerts fired
1
False alerts
0
Outage caught
1 min
Budget burned
2.3%
Slow burn caught
not started
Budget burned
-

An alert is false when it starts outside both incidents. Budget burned is the share of the whole 30-day budget spent between the start of the incident and the first alert.

budget used
26.7%
noise blips so far
2
state
running

What to try

Each one sets up a starting point. Then make the change it describes.

  1. A short sharp outage

    Remove the slow burn and the noise, keep the ten minute outage, and read the detection times.

    Look for. Every alert catches a total outage within about a minute, so the sharp case does not tell the three rules apart. What differs is what else they do.

  2. The slow burn

    Remove the outage and the noise, keep a 2x slow burn, and watch which alerts fire.

    Look for. The error ratio never gets high enough for the threshold or the single window. Only the multi-window rule has a pair that fires on one times the budget rate over three days, and it does so after a good part of the budget is gone.

  3. Noise

    Turn the outage and slow burn off and raise the noise blips to 15.

    Look for. Each blip is a few minutes of errors that cost almost nothing against a month of budget. The threshold alert pages for every one. The burn-rate rules wait for the long window to agree.

  4. Shrink the single window

    Set the single window to 5 minutes, with the default noise.

    Look for. A short window reacts fast and is fooled by every blip. A long window ignores blips and is slow to notice a fading problem. Multi-window rules ask both.

  5. A tight threshold

    Set the threshold alert to 0.2 percent and read how many times it fired.

    Look for. It now notices the slow burn within minutes, but it also fires over and over as the error ratio wobbles around the line. Catching the problem early and not paging all week pull in opposite directions.

  6. An outage that spends the budget

    Set the outage to 60 minutes and watch the budget line.

    Look for. A 99.9 percent SLO over 30 days has room for well under an hour of total outage. A full hour overspends it, and the line ends below zero.

New to the idea? Read the lesson first. Every number here comes from a seeded simulator, so the same seed gives the same run.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms