Skip to content

SLO Error Budget Calculator

Pure frontend: target, window and traffic in, budget and release tier out. Nothing leaves the browser, and no monitoring backend is contacted.

How to use it

Enter an availability target such as 99.9, a window in days and the number of valid requests, then click Calculate. You get allowed failures in time and in request count, the tier implied by the budget you have already consumed, and the error-rate thresholds for multi-window burn-rate alerts. The numbers are arithmetic; what gives them force is the release policy you wrote down in advance.

The budget has units

Error budget equals one minus the SLO, and that fraction converts into minutes or failed requests. At 99.9% over 30 days the allowance is 0.1%: 43,200 minutes × 0.001 = 43.2 minutes, or 10,000 failures out of ten million requests. Both numbers describe the same allowance but lead to different decisions.

Time-based is intuitive and easy to align with a downtime exercise. Its weakness is fairness: ten minutes at 3 a.m. and ten minutes at noon cost the same, which does not reflect business impact. Request-based spends failures like currency, so peak outages cost more. Online APIs should prefer it; batch and reachability use cases are fine with time-based. The prerequisite for either is telemetry that can tell a good event from a valid event; without that denominator the budget is a pretty number.

Burn rate turns a lagging metric into a leading one

Discovering on the last day of the month that the budget is gone is too late. Burn rate asks a different question: at this pace, how long is left? It is the observed error rate divided by the allowed error rate. At 99.9% the allowance is 0.1%; if the current error rate is 1.44%, the burn rate is 14.4, which would exhaust a 30-day budget in about 50 hours, and that single hour already spent roughly two percent of the month.

The Google SRE Workbook's multi-window combination is a one-hour long window plus a five-minute short window at 14.4x for a page; six hours plus thirty minutes at 6x, also a page; three days plus six hours at 1x for a ticket. The short window is about one twelfth of the long one, so alerts clear soon after recovery instead of waiting for a human to silence them. These are examples, not commandments. Low-traffic services must recalculate, or a single failure will blow up the ratio.

Turn the budget into a release gate

Deciding rules while everyone is calm beats arguing during an incident. A three-column table is enough: remaining budget, allowed change type, who approves. Above half, ship normally; a quarter to half, add review; below a quarter, pause non-essential features; at zero, freeze routine change and move people onto reliability. Security and recovery fixes follow an exception path with a named approver, a written reason and a condition for returning to normal.

Guard against slow decay of the whole system. A broken SLI instrumentation makes the budget meaningless, a threshold that has not been reviewed in six months becomes decoration, and exceptions turn into routine. Confirm the metric definition has not changed before every release, and revisit the target quarterly: a budget nobody ever touches suggests the target is too loose, one that freezes monthly suggests a real reliability investment is overdue.

Choosing an SLI and a target

An SLO is only as good as its SLI. Measure close to the user, at the load balancer or client, not deep inside the service. Healthy CPU does not mean the checkout request succeeded. For request-response APIs use availability as the non-5xx, non-timeout ratio and latency as the share of requests faster than a threshold. Data pipelines care about freshness; storage about durability; batch jobs about finishing before a deadline. Two or three per service is plenty, because nobody can watch twenty curves meaningfully.

Define the denominator explicitly. Do health checks count as valid requests? Does a gateway retry count once or twice? Is a response with incomplete data good or bad? Write it down and make sure two people could reproduce the same number from the same telemetry. A vague definition guarantees arguments at every review and strips the budget of its authority.

In PromQL the SLI is usually a ratio: the rate of good events divided by the rate of valid events. Whether both sides come from the same metric depends on your instrumentation. Once written, run it in the expression browser: the value should sit between zero and one and agree with a hand-calculated failure share at the same moment.

Set the target from four weeks of baseline, slightly below normal performance. Keep it tighter than any external SLA so internal behavior changes before a customer can claim damages. For low-traffic services, use longer windows, synthetic probes, or combine several similar services into one SLO; hard-coding the 14.4x threshold is meaningless without enough traffic.

For the full implementation path, see SLO and error budget in practice. On the alerting side, see Alertmanager noise reduction so budget alerts do not become noise themselves. The multi-window thresholds come from the Google SRE Workbook alerting chapter.