ARTICLE - Monitoring & Alerting

Implementing SLO/SLI and Error Budget Governance

The phrase 99.9% reliability carries no information unless it answers three questions at once: what is measured, over what window, and what happens when it is missed.

2026-08-06 Google SRE

Implementing SLO/SLI and Error Budget Governance

The phrase "99.9% reliability" carries no information unless it answers three questions at once: what is measured, over what window, and what happens when it is missed. Most teams answer only the middle one, which turns the SLO into a number on a wall that nobody reads - discovered as missed at quarter end, discussed briefly, then ignored.

The real purpose of an SLO is not to prove that we are stable. It is to provide an enforceable bargaining clause between change and stability. It puts two long-standing opposing desires on the same table: product wants more releases and more experimentation, operations wants fewer changes and fewer incidents. Without an SLO, the conflict is resolved in meetings, and the outcome depends on who argues louder. With an SLO it becomes a computable question - how much budget is left.

This article follows that chain: how the four concepts divide the work, why a 100% SLO is unusable in practice, SLI ratio design, burn rate and window trade-offs, then the core chapter on what the error budget is actually for, ending with four common mistakes and a rollout that starts with one or two SLIs. For how to write a single alert, see alert design basics; this piece is about the standard you use to decide whether an alert should exist.

1. An SLO Is Not a KPI, It Is an Enforceable Bargaining Clause

1.1 How SLI, SLO, SLA, and Error Budget Divide the Work

The SLI is the measurement: it answers what we are actually measuring, usually as a ratio of good events to valid events, such as the share of valid requests that are not 5xx. The SLO is that ratio plus a target and a window, such as "over the past 30 days, the availability SLI is at least 99.9%". The error budget is one minus the SLO, the amount of failure allowed. Burn rate is how fast the budget is being spent.

The SLA is something else: an external contract with consequences for breach (credits, penalties), usually looser than the SLO. The three are easy to confuse. The SLA is the floor, the SLO is the internal operating target, and the SLO needs headroom between itself and the SLA - otherwise, once the SLO breaks, the SLA follows immediately with no buffer. Setting the SLO as tight as the SLA forfeits all early-warning space.

A way to remember the division: the SLI is the ruler, the SLO is the mark on it, the error budget is the distance remaining, and the burn rate is how fast you are covering that distance. Alerts should be built on the speed, not on a reading at one point - which is what chapter four covers.

1.2 It Measures How Much Outage You Are Willing to Pay For

Moving an SLO from 99.9% to 99.99% is not free. It usually means more redundancy, a more conservative change process, longer test cycles, more people, and slower feature delivery. Those costs eventually reach users in some form: fewer improvements, higher prices, or both.

So an SLO is an explicit trade-off: how much engineering investment we will spend to reduce how often users fail. That trade-off must be decided jointly by product and engineering, not announced by either side. Decided by engineering alone, it drifts too high in the name of safety; decided by product alone, it drifts too low in the name of speed.

If a team cannot explain why the target is 99.9% and not 99.5%, the number was probably copied from somewhere. A usable question: if the service were unavailable for one hour this month, what would users do? If the answer is "almost nobody would notice", 99.9% may be too strict; if the answer is "support would be flooded", it may be too loose.

2. Why a 100% SLO Is Unusable

2.1 It Amounts to Freezing Every Change

Every change carries a failure probability: releases, configuration adjustments, database migrations, scaling operations, even certificate rotation. With a 100% SLO, any change that causes one failure breaks the target instantly, so the only safe strategy is to change nothing. That is literally "maximum reliability" and practically a freeze at one version, while the system slowly loses relevance to business needs.

Real systems also contain failure that cannot be eliminated: dependency jitter, occasional network path issues, hardware faults, client environment differences. These form a physical floor on reliability. An SLO above that floor is meaningful; an SLO at 100% is mathematically unreachable, and the team is failing from day one.

There is a more practical problem too: freezing changes is itself risky. A system that has not shipped for a long time concentrates risk into the moment it must ship - a security patch, a dependency upgrade - and the team has lost fluency with the release process. Reliability is not obtained by standing still.

2.2 It Degenerates Into a Number Nobody Reads

When a target is unreachable, team behavior is predictable: try hard for a while, conclude it cannot be met, stop paying attention. The SLO becomes a square that is red in the monthly report and nobody mentions again. That is the worst outcome - not a target set too high, but a target that has lost its binding force.

An SLO that no longer constrains anything is worse than no SLO at all, because it creates the illusion of reliability governance. Governance requires a target that is achievable, measurable, and able to trigger action. Remove any one and it becomes decoration.

So the first step in setting an SLO is usually not raising the bar but placing it near the current level with a little headroom. Achieve first, then improve. Consistently hitting a pragmatic 99.5% is worth more than repeatedly missing a beautiful 99.99%, because the first produces trustworthy data while the second teaches people to look away.

3. Defining the SLI: Start from the User Journey, Not the Endpoint

3.1 Ratio Definitions: Good Events over Valid Events

The ratio form is valuable because it is bounded, comparable, and aggregatable. Defining it requires three things written down together: what counts as a good event, what counts as a valid event, and where it is observed. The vaguest of the three is usually "valid event" - whether crawlers are excluded, whether health checks are excluded, whether client-initiated cancellations are excluded, whether 4xx is excluded.

These exclusions change results substantially. An SLI that counts every 4xx as failure and one that counts only 5xx can differ by several percentage points over the same period, and both can call themselves availability. The definition must exist in writing and must be identical across dashboards, alerts, and SLO reports, or cross-team comparison is meaningless.

Ratios also imply a requirement: a large enough denominator. A service handling a few dozen requests per minute has a ratio that swings wildly over short intervals, and using it for short-window SLO evaluation mistakes sampling noise for an outage. Low-traffic services should lengthen the window or add absolute failure counts as a secondary test.

3.2 Three SLI Types and Where Each Fits

The first is availability: the share of successful requests. It suits most request-response services, is the most universal, and is also the most easily misdefined (see chapter six).

The second is latency: the share of requests completed within a threshold. Note the correct form is a share, not an average or a percentile. "P95 under 800 ms" is statistically harder to combine with an error budget than "95% of requests complete within 800 ms", because the former is a percentile value while the latter is a ratio that feeds a budget directly. Percentiles suit dashboards and alerts; ratios suit budgets.

The third is freshness or throughput, used for asynchronous systems: how quickly data is processed, how quickly a queue drains, when a report is ready. For these systems "available" does not mean "responds immediately", and measuring them with an availability SLI yields long-term green dashboards while users remain dissatisfied.

Which type to choose depends on the shape of the journey, not on the technical category of the system. One system can carry all three, but it does not need all three - as chapter one noted, greed removes binding force from every target. Use the SLO and SLI template to write the definitions down first.

4. Burn Rate and Multiple Windows: One Window Forces a Choice

4.1 What Burn Rate Means and How It Converts

Burn rate is the observed failure rate divided by the allowed failure rate. With a 99.9% SLO the allowed failure rate is 0.1%; if the current failure rate is 1%, the burn rate is 10. The meaning is intuitive: at this pace, the whole window's budget is consumed in one tenth of the window. Over a 30-day window, a burn rate of 10 drains the budget in roughly three days.

The conversion connects "how bad is it now" with "how long can we last", which is more decision-relevant than "error rate is 1%". Whether 1% is severe depends entirely on the SLO: wasteful for a 99% service, catastrophic for a 99.99% service.

Computing it needs a reliable numerator and denominator, typically rate metrics over sliding windows. At the rule level, the ratio is usually recorded first and compared to a threshold afterward; for the mechanics see Prometheus alert rules design:

groups:
  - name: slo-burn-rate
    rules:
      - record: job:sli_error_ratio:rate5m
        expr: sum(rate(http_requests_total{code=~"5.."}[5m])) by (job) / sum(rate(http_requests_total[5m])) by (job)

4.2 Window Pairs Trade False Alarms Against Missed Detections

With a single window you must choose between two properties. A short window detects sudden failures quickly, but one jitter lasting tens of seconds will fire it. A long window smooths jitter away, but a burst that burns a meaningful share of the budget in ten minutes is only discovered once it shows up in the long window - by which point much of the budget may be gone.

Multiple windows split the two requirements: a long window establishes that this is sustained degradation rather than a blip, and a short window establishes that degradation is still ongoing rather than recovered. Firing only when both hold lets the long window filter the short window's sensitivity while the short window compensates for the long window's slowness.

In practice, two or three tiers are common: one for immediate notification (high burn rate, both windows short), one for business-hours handling (moderate burn rate, longer windows), and one for trend awareness (low burn rate, dashboard only). The specific numbers matter less than the division of labor: the short window provides sensitivity, the long window provides credibility.

The cost is comprehension. Someone paged with "burn rate 14.4 sustained" needs one sentence of translation to understand severity - usually "at this pace the monthly budget is gone within two hours". Putting that sentence in the alert text improves response quality more than adding ten more metrics. For how burn-rate alerts fit into rotations, see alert fatigue and on-call practice.

5. What the Error Budget Is Really For: Deciding Whether to Stop Shipping

5.1 Two Decision Sets: Budget Healthy and Budget Exhausted

This is the most valuable part of the SLO and the part most often skipped. The error budget is not for watching; it is for deciding. When the budget is healthy, teams ship normally, run experiments, and take acceptable risks. When it approaches exhaustion, they narrow the scope of change, prioritize stability work, and push new features back.

The crucial detail is that the rule must be written in advance, not debated when the budget is nearly gone. In the moment, everyone has a good argument: product says this release is critical and has passed review, engineering says shipping now will cause an incident. Without a prior rule, the outcome depends on who has more organizational weight, and those arguments burn trust.

Writing it down is unglamorous: one table with three columns - remaining budget range, permitted change types, who approves. For example, above half remaining, routine releases need no extra approval; between a quarter and a half, releases need stability owner sign-off; below a quarter, only fixes and security changes are allowed. The wording can be debated; the table must exist.

5.2 Write the Policy Down Instead of Arguing Every Time

The value of a policy document is converting a recurring argument into a one-time agreement. It must answer four questions: how the budget is computed (definition and window), when it counts as exhausted (threshold), which changes are frozen afterward, and who can grant exceptions and how those are recorded.

The fourth is most often omitted, and omitting it makes the policy fail in practice, because genuine emergencies always exist. Providing an exception channel while requiring a recorded reason keeps flexibility and leaves an audit trail - if a quarter contains many exceptions, the SLO or the policy itself needs revision.

The policy should also define a review cadence: after each budget exhaustion, a short review producing one answer - was this a capacity problem, a change problem, or a dependency problem? This differs from an incident review because it does not wait for user complaints; budget exhaustion is itself an early signal. The incident postmortem template provides a usable structure.

6. Four Common Mistakes

6.1 Treating a Server-Side 200 as the SLI

The most common definition error is looking only from the server's perspective: the process is alive and returned 200, so the request succeeded. But the user may have received a blank page, an empty list, or a spinner that never stops. Between a server-side success and a user completing the task lie rendering, chained API calls, third-party dependencies, and frontend error handling.

There are two corrections. First, move the SLI to an observation point closer to the user: successful responses at ingress, joint success across a chain of endpoints, or even a frontend-reported task completion rate. Second, add user-side signals as a control: use frontend RUM and Core Web Vitals monitoring for real experience and synthetic monitoring to verify the critical path from outside.

Both corrections follow one principle: define the SLI by whether the user completed the task, not by whether our service reported an error. That principle explains why server-side metrics can stay green for months while complaints keep arriving.

6.2 Targets Beyond Capacity, SLOs as KPIs, Twenty at Once

The first mistake is a target far beyond actual capability. Actual availability is 99.5% while the target is 99.95%, so the budget is exhausted from the first month, the policy sits permanently in freeze, and the team learns to route around it. A target should sit slightly above the current level: directional but reachable.

The second is using the SLO as a performance KPI for the team. Once attainment is tied to reviews, the rational move is to adjust definitions rather than improve the system: exclude failed requests, shift the window, filter samples. This systematically contaminates the data, and once contaminated, every use of the SLO fails. SLOs should drive decisions, never evaluate people.

The third is launching twenty SLOs at once. Each needs a definition, a data pipeline, alert configuration, a supporting policy, and regular review; twenty means doing all of that twenty times, and the usual outcome is twenty shallow implementations and none actually in use. Start with one or two, prove the whole loop, then expand.

7. Rollout Order and a Checklist

7.1 Ship One or Two SLIs for Three Months

Month one does exactly one thing: pick the SLI closest to the user journey, write the definition down, connect the data pipeline, and produce a chart showing the trend. No alerts this month, only observation - the goal is knowing the current level and its normal range of variation.

Month two sets the SLO and error budget and writes the policy document. The target sits slightly above the current level, with a 30-day window. Configure burn-rate alerting in the same month, but only one tier, routed to business hours, to validate that the rule reflects real degradation.

Month three starts using the policy for real: shipping normally while the budget is healthy, tightening changes as it approaches exhaustion, and recording every judgment. Three months in, if the mechanism has actually shaped at least one release decision, it is alive. If it has shaped none, the target is too loose or the policy is not being executed - fix that before adding a second SLI.

7.2 Self-Check Table

Check Test First action if it fails
SLI definition Numerator, denominator, exclusions all written down Write the definition before setting targets
User perspective Can answer whether the user completed the task Move the observation point or add user-side signals
Target reachable Target sits slightly above actual Re-baseline from a month of data
Windows and burn rate At least one long and one short window paired Add the short window, never rely on one
Policy document Ranges, freezes, and exception channel defined Write the policy before wiring alerts
Decision impact Has shaped at least one release decision Check whether the policy is executed
Review cadence Short review after each budget exhaustion Fix the entry point and template
Count control No more than two active SLOs Pause additions, use the existing ones

One test deserves separate emphasis: an SLO that has never affected a release, a rollback, or a prioritization decision is currently just a report field. Making it matter is implementation; keeping it mattering is governance. For which metrics to measure, return to the business-path derivation in what to monitor and align the SLOs with that metric list.

Source: Google SRE book and service reliability workbook material on SLIs, SLOs, error budgets, and burn-rate alerting. Definitions and governance framing follow that official material, organized and interpreted by 16IDC.

Integration & Code Examples

Example 1: Record availability and burn rate with recording rules

groups:
  - name: slo-http-availability
    interval: 30s
    rules:
      - record: job:slo_availability:ratio_rate5m
        expr: |
          sum(rate(http_requests_total{code!~"5.."}[5m])) by (job)
          /
          sum(rate(http_requests_total[5m])) by (job)
      - record: job:error_budget_burn:rate1h
        expr: |
          (1 - job:slo_availability:ratio_rate5m) / (1 - 0.999)

0.999 is your SLO target and this is the only place to change it; burn rate is current error ratio divided by allowed error ratio.

Example 2: Long and short window burn-rate alerts

groups:
  - name: slo-burn-alerts
    rules:
      - alert: ErrorBudgetFastBurn
        expr: |
          job:error_budget_burn:rate1h > 14.4
          and
          job:error_budget_burn:rate5m > 14.4
        for: 2m
        labels:
          severity: page
        annotations:
          summary: "1h burn rate too high; the budget may run out within hours"
      - alert: ErrorBudgetSlowBurn
        expr: job:error_budget_burn:rate6h > 6
        for: 30m
        labels:
          severity: ticket

The long window proves degradation is real, the short window proves it is ongoing; requiring both pages far less often on noise.

Limitations

  • Without an SLO, the conflict is resolved in meetings, and the outcome depends on who argues louder.
  • The SLO is that ratio plus a target and a window, such as "over the past 30 days, the availability SLI is at least 99.9%".
  • That trade-off must be decided jointly by product and engineering, not announced by either side.
  • If a team cannot explain why the target is 99.9% and not 99.5%, the number was probably copied from somewhere.
  • When a target is unreachable, team behavior is predictable: try hard for a while, conclude it cannot be met, stop paying attention.

FAQ

What is the minimum prerequisite for a first SLO?

A metrics pipeline that can produce a ratio, plus a written definition. Fix the numerator, the denominator and the exclusions first — crawlers, health checks, whether a 4xx counts as failure — then check the denominator size. A service seeing a few dozen requests per minute needs a longer window or an absolute failure count.

Why does the burn-rate alert keep firing?

Separate measurement noise from real degradation first. With a single short window, a jitter lasting 30 seconds is enough to fire it; require a long and a short window to agree, and confirm the denominator is large enough. Also check whether the rule reads a quantile rather than a ratio, since only a ratio converts into budget.

How does the budget policy sit alongside the SLO?

The SLO sets the internal target; the policy sets the actions. An SLO states a ratio and a window, such as 99.9% over 30 days, while the budget policy says what happens once less than a quarter of it remains: only fixes and security work. Keep them in separate documents so it stays clear which number to edit.

Which services shouldn't adopt an SLO at all?

Ones without a user journey to slice. Internal batch jobs, or services whose denominator is a few dozen requests per minute, need metric definitions and stability work first. Twenty SLOs at once is worse still: run 1 to 2 for three months and check whether they ever changed a release decision.

Related Providers

  • Prometheus: confirm scrape interval and retention when SLIs become recording rules and burn rate is computed over multiple windows.
  • Grafana: annotate thresholds and release events when remaining error budget and burn rate must share one dashboard.
  • Datadog: compare its SLO feature and per-host billing when monitoring is hosted and the calculation chain should not be self-run.

Community & Resources

Learning resources and tools

Original source: Google SRE ↗