Posted in DevOps & Observability

SLOs and Error Budgets Explained: The Math Behind Modern Site Reliability Engineering

At a Glance

Concept / ToolWhat It SolvesWhere It’s UsedKey Mechanism
SLI (Service Level Indicator)Measures what users actually experienceAny service with a defined “good event”Ratio of good events to total events
SLO (Service Level Objective)Sets an internal reliability targetEngineering & SRE teamsTarget percentage over a rolling window (e.g., 99.9% over 30 days)
SLA (Service Level Agreement)Sets a contractual promise with consequencesCustomer contracts, legal/procurementUsually a looser target than the SLO, backed by credits or penalties
Error BudgetQuantifies how much unreliability is acceptableBalancing release velocity vs. stability100% minus the SLO, expressed as an allowed failure count or time
Burn RateMeasures how fast the budget is being spentAlerting thresholdsObserved error rate divided by the allowed error rate
Multiwindow, Multi-Burn-Rate AlertingPages reliably without noise or slow detectionPrometheus/Alertmanager, Google Cloud Monitoring, Datadog, Nobl9, Grafana SLORequires both a long window and a short window to exceed a burn-rate threshold before firing
Vendor SLO platforms (Nobl9, Datadog SLOs, Grafana SLO)Operationalize the math so teams don’t hand-roll itMixed observability stacksIngest SLI data, compute budget/burn rate, and fire alerts or reports automatically

The Verdict

Error budgets turn a subjective argument — “is the site reliable enough?” — into arithmetic. Once a team agrees on an SLI, an SLO, and a burn-rate alerting policy, reliability and feature velocity stop being opposing camps and become two dials reading the same number. The math itself is simple; the discipline of agreeing on it organizationally, and tuning alert windows so pages are both fast and rare, is where most of the real work lives.

What It Is

Google’s Site Reliability Engineering teams popularized the vocabulary that most of the industry now uses, and it rests on three distinct terms that get conflated constantly.

  • SLI (Service Level Indicator): a quantitative measure of some aspect of the service, typically expressed as a ratio of “good events” to total valid events — for example, the proportion of HTTP requests that return a non-5xx status within a latency threshold. Google’s SRE Workbook describes the SLI as ranging “from 0% to 100%, where 0% means nothing works, and 100% means nothing is broken.”
  • SLO (Service Level Objective): an internal target for that SLI over a defined window, such as 99.9% of requests succeeding over a rolling 30 days. The Workbook argues explicitly against 100% targets, since dependencies fail, networks partition, and change itself is a major source of outages — a perfectly reliable target is neither achievable nor economically sensible.
  • SLA (Service Level Agreement): a contractual promise, usually to customers, that is tied to consequences such as service credits. SLAs are typically set looser than the internal SLO specifically so that an SLO breach gives the team a warning well before an SLA — and a contractual penalty — is at risk.

The error budget is what falls out once you have an SLO: it is literally 100% minus the SLO, converted into a concrete allowance of bad events. Google’s Workbook example: a service handling 3,000,000 requests over four weeks with a 99.9% SLO has a budget of exactly 3,000 allowed errors. Every incident can then be measured in budget terms — the Workbook notes one bad release that consumed 13% of a budget and a database failure that consumed 65% of it. That reframing is the whole point: instead of debating whether an outage was “bad,” teams can ask how much of the agreed allowance it used.

How It Works: The Math

Once an SLO and error budget exist, the next problem is alerting: how do you detect that the budget is being consumed too fast, before it’s gone? This is where burn rate comes in.

Burn rate is defined consistently across Google’s and Datadog’s documentation as:

burn_rate = observed_error_rate / allowed_error_rate
allowed_error_rate = 1 - SLO
time_to_exhaustion = SLO_period / burn_rate

A burn rate of 1 means the service is failing at exactly the rate the SLO allows, and the budget empties precisely at the end of the period. A burn rate of 2 empties it in half the time. For a 30-day, 99.9% SLO (allowed error rate 0.1%), Google’s Workbook gives a worked table: a burn rate of 1 exhausts the budget in 30 days, a burn rate of 10 exhausts it in 3 days, and a burn rate of 1,000 (essentially a full outage) exhausts it in about 43 minutes.

The budget consumed by any single alert window follows directly from the same formula:

budget_consumed = burn_rate * alert_window / SLO_period

# Example: burn rate 14.4 sustained for 1 hour
# against a 30-day (720-hour) SLO period
budget_consumed = 14.4 * 1 / 720  # = 0.02 -> 2%

A naive alert — “page if the error rate crosses X% in a 1-hour window” — has two failure modes: it’s too slow to catch a brief severe outage, and once it fires, it can keep firing for the full length of the window even after the problem is fixed, because the window average takes time to recover. Google’s Workbook’s answer is multiwindow, multi-burn-rate alerting: require both a long window (to confirm the burn is significant) and a short window, typically one-twelfth the length of the long one (to confirm it’s still happening), before paging. This cuts false positives and shortens the time an alert stays open after the underlying issue resolves — the Workbook’s example of a 14.4x burn checked over both a 1-hour and a 5-minute window can page once roughly 2% of budget is spent, and clears about 5 minutes after errors stop.

Google’s recommended ladder for a 99.9% SLO, as published in the Workbook:

SeverityLong WindowShort WindowBurn RateBudget Consumed
Page1 hour5 minutes14.42%
Page6 hours30 minutes65%
Ticket3 days6 hours110%

Datadog’s documentation publishes an equivalent ladder for 30-day SLOs that matches the first two rows exactly (14.4x over 1h/5m for 2%, and 6x over 6h/30m for 5%) but reaches the 10% “ticket” tier differently: a burn rate of 3 over a 24-hour/120-minute window rather than Google’s burn rate of 1 over a 3-day/6-hour window. Both arrive at roughly 10% of a 30-day budget — it’s worth flagging explicitly that the specific window/rate pairing is tunable, as long as the underlying “budget consumed” arithmetic holds; there is no single canonical ladder, only a canonical method for deriving one. Nobl9’s own alerting conditions generalize this further, supporting fast-burn conditions (short-window spikes), slow-burn conditions (gradual consumption), and predictive conditions that estimate when the remaining budget — not the full budget — will be exhausted at the current rate, which the vendor states becomes more sensitive as the budget shrinks.

One more subtlety from Google’s chapter: Alertmanager-style for: duration clauses (requiring a condition to hold for N minutes before firing) are explicitly discouraged for SLO alerting, because a fixed duration doesn’t scale with severity and can reset during intermittent failures in a way that delays detection.

Benefits

  • Replaces subjective “is this reliable enough” debates with a shared, calculable number everyone — engineering, product, and leadership — can look at.
  • Gives teams an explicit, pre-agreed decision rule for when to slow down releases versus when to ship faster, rather than relitigating it after every incident.
  • Burn-rate-based alerting (versus static thresholds) scales severity to the actual rate of budget consumption, which reduces both missed slow-burn problems and noisy false pages.
  • Makes incident impact comparable across very different failure modes — a short full outage and a long partial degradation can both be expressed as “X% of budget.”

Common Pitfalls

  • Picking SLIs that are easy to measure rather than what matters to users — e.g., server-side success rate when the real failure mode is client-side timeouts.
  • Setting a 100% or near-100% SLO, which Google’s Workbook calls out directly as both unrealistic and wasteful, since it leaves no room for planned maintenance or normal operational risk.
  • Defining the math without an error budget policy. The Workbook stresses that stakeholders must agree in advance on what happens when the budget is exhausted (freeze releases, prioritize reliability work, declare an emergency) — without that agreement, the budget is just a dashboard number nobody acts on.
  • Over-engineering the burn-rate ladder. Multiwindow alerting has real parameter surface area (window lengths, burn-rate thresholds, number of severity tiers), and teams that copy a vendor’s default table without validating it against their own traffic and incident history can end up either over- or under-alerted.
  • Treating vendor SLO tracking as a substitute for the underlying agreement. Tools like Datadog SLOs, Nobl9, and Grafana SLO compute and alert on the math correctly, but none of them can manufacture organizational consensus on what the target should be or what happens at exhaustion.

Who It’s Useful For / Who Should Look Elsewhere

SLO-driven error budgets suit teams operating services with enough traffic and history to make an SLI statistically meaningful, and enough organizational maturity to actually enforce an error budget policy when it’s breached. Very early-stage products with sparse traffic, or teams without the authority to pause feature work when a budget is spent, will get the dashboard without the behavior change that makes the practice valuable. For those teams, simpler uptime monitoring and ad hoc incident review may be more honest than importing SRE vocabulary that implies a maturity the organization doesn’t yet have.

Bottom Line

The math behind SLOs and error budgets is genuinely simple — a ratio, a subtraction, and a division for burn rate — and that’s precisely why it’s useful: it’s hard to argue with arithmetic. The hard part is upstream (agreeing what to measure and what to do when the budget runs out) and downstream (tuning multiwindow alert thresholds so pages are timely without being noisy). Vendors differ in the exact burn-rate ladder they ship by default, which is a feature, not a bug — the method generalizes; the specific numbers should be tuned to your service.

FAQ

Is an SLO the same as an uptime percentage?
Not necessarily. An SLO can track availability, but it can equally track latency, error rate, freshness, or any other SLI expressed as a good/total ratio. Google’s Workbook explicitly recommends combining availability with at least one latency SLI, often at multiple percentile thresholds, to catch the “long tail” that a single average would hide.

Why not just set the SLO equal to the SLA?
Because then an SLA breach and the first sign of trouble happen at the same moment. Setting the SLO tighter than the SLA gives the team a warning buffer to respond before a contractual penalty is triggered.

What’s the difference between burn-rate alerting and a normal threshold alert?
A plain threshold alert (e.g., “error rate > 1%”) doesn’t account for how much budget that represents or how long the condition has to persist to matter. Burn-rate alerting normalizes the error rate against the SLO’s allowed rate and against time, so the same alerting logic scales automatically to different SLO targets and periods.

Do I need a dedicated SLO platform, or can I build this on Prometheus?
The math can be implemented directly with recording rules and alerting rules against raw metrics; several public examples of multiwindow burn-rate rules exist in the Prometheus/Alertmanager ecosystem. Dedicated platforms (Nobl9, Datadog SLOs, Grafana SLO) mainly save the work of building and maintaining that query layer, plus add reporting, budget forecasting, and multi-source SLI ingestion.

What happens when the error budget is fully spent?
That’s determined entirely by the team’s error budget policy, not by the math itself. Google’s Workbook describes common responses: freezing feature launches, reprioritizing engineering effort toward reliability work, or — in severe cases — declaring an operational emergency. The budget is a trigger; the policy is the response.

Sources


Discover more from Software Online Review

Subscribe to get the latest posts sent to your email.

Unknown's avatar

Author:

Innovations, logic & design thinking