Markdown Editor

SLO Document Template

Critical user journeys, SLI specifications and queries, targets, error budget maths, burn-rate alerts per the alerting policy, error budget policy summary, review

Software & EngineeringFullGoogle SRE conventionsslodocmath

How to use: Use it to define SLOs for one service. Fill the critical user journeys first, then SLIs as good over valid events with exact queries. The main pitfall is copying burn-rate thresholds without recomputing them for your window.

Preview

SLO Document: [Service name]

Service level objective (SLO) document for one service. It names the owners, the critical user journeys, the service level indicators (SLIs) with exact measurement, the targets and windows, the error budget calculation, burn-rate alerting, a summary of the error budget policy, dashboards and the review process. The structure follows SLO practice described in Google's Site Reliability Engineering books (first edition 2016, second edition 2026) and The Site Reliability Workbook. Alert routing and paging rules come from the organisation alerting policy, and budget consequences from the error budget policy. Replace every [bracketed] value and every row marked Example.

Document control

FieldValue
Document ID[SLO-SERVICE-001]
Service[checkout-api]
Service owner (engineering)[@eng-lead]
Product owner[@product-manager]
SRE / reliability contact[@sre]
Approvers/reviewers[@product-manager], [@sre-lead], [@engineering-director]
Version[0.1]
Status[Draft / Active / Under revision / Retired]
Effective fromYYYY-MM-DD
Next reviewYYYY-MM-DD
Last updatedYYYY-MM-DD
Classification[Internal]

Approvals

RoleNameDecisionDate
Service owner[@name][Approved]YYYY-MM-DD
Product owner[@name][Approved]YYYY-MM-DD
SRE lead[@name][Approved]YYYY-MM-DD
Engineering director (escalation owner)[@name][Approved]YYYY-MM-DD

Revision history

VersionDateAuthorChange summary
0.1YYYY-MM-DD[@name]Draft SLIs from user journeys
1.0YYYY-MM-DD[@name]Example: Targets approved; alerts deployed
1.1YYYY-MM-DD[@name]Example: Latency threshold changed from 500 ms to 800 ms after RUM analysis
1.22026-10-24[@name]Updated to reference the second edition of the SRE book, link burn-rate alerting to the Alerting Policy and budget consequences to the Error Budget Policy; burn-rate examples rechecked

Contents

1. Service overview and owners

Example: checkout-api accepts a basket, reserves stock, takes payment through the payment provider and creates an order. It serves the web shop and the mobile apps in all regions, with a peak of about 1,200 requests per second.

ItemValue
Service tier[Tier 1: revenue critical]
Users[Customers via web and mobile; internal order tools]
Upstream callers[web-frontend, mobile-bff]
Key dependencies[payments-provider, inventory-service, PostgreSQL]
In scope[All public endpoints under /api/checkout/*]
Out of scope[Admin endpoints; batch export jobs; synthetic test traffic]
On-call rotation[link]
Runbook[link to dev/runbook]

2. Critical user journeys

The journeys below define what "working" means from the user's point of view.

IDJourneyWhy it mattersSteps measuredRelated SLIs
CUJ-1Example: Customer places an orderDirect revenuePOST /checkout, POST /paymentsSLI-1, SLI-2
CUJ-2Example: Customer views order confirmationTrust; reduces support contactsGET /orders/{id}SLI-3
CUJ-3Example: Order reaches the warehouse systemFulfilment on timeOrder event publishedSLI-4
CUJ-4[Journey][Reason][Steps][SLI-n]

3. Service level indicators

All SLIs are expressed as the proportion of valid events that were good:

SLI=good eventsvalid events×100%\text{SLI} = \frac{\text{good events}}{\text{valid events}} \times 100\%

3.1 SLI specifications

IDTypeSpecificationValid eventsGood eventsMeasured at
SLI-1AvailabilityExample: Proportion of checkout requests served without a server errorRequests to /api/checkout/*, excluding health checks and requests from synthetic testsResponses with status other than 5xx and 429Load balancer logs
SLI-2LatencyExample: Proportion of checkout requests served faster than 800 msSame as SLI-1, successful onlyDuration < 800 ms (LB request time)Load balancer histogram
SLI-3AvailabilityExample: Proportion of order page loads that succeedGET /orders/{id} from real usersNon-5xx responsesLoad balancer logs
SLI-4FreshnessExample: Proportion of orders published to the warehouse topic within 2 minutesOrders createdPublish timestamp minus create timestamp < 120 sPipeline metrics
SLI-5[Type][Specification][Valid][Good][Source]

3.2 Implementation

The queries below implement SLI-1 and SLI-2. They are stored in [repository/path/slo-rules.yaml].

# SLI-1 availability, 5-minute ratio
sum(rate(lb_requests_total{service="checkout-api", path=~"/api/checkout/.*", code!~"5..|429", synthetic="false"}[5m]))
/
sum(rate(lb_requests_total{service="checkout-api", path=~"/api/checkout/.*", synthetic="false"}[5m]))

# SLI-2 latency, share of successful requests under 800 ms
sum(rate(lb_request_duration_seconds_bucket{service="checkout-api", path=~"/api/checkout/.*", synthetic="false", code!~"5..|429", le="0.8"}[5m]))
/
sum(rate(lb_request_duration_seconds_count{service="checkout-api", path=~"/api/checkout/.*", synthetic="false", code!~"5..|429"}[5m]))

3.3 Known limitations

  • Example: Load balancer measurement misses failures before the request reaches the LB (DNS, client network). Real user monitoring covers this partially.
  • Example: 4xx responses are counted as good; a bug that returns 400 for valid input would not burn budget. Tracked via a separate 4xx ratio alert.
  • [Limitation and mitigation]

3.4 SLI menu by service type

Service typeTypical SLI typesExample good event
Request-driven (API, web)Availability, latency, quality (degraded responses)Non-5xx response under 800 ms
Data pipelineFreshness, correctness, coverageRecord processed within 10 minutes with valid output
StorageDurability, availability, latencyObject read returns the bytes written
Scheduled jobCompletion, timelinessNightly job finishes before 06:00 UTC
Client applicationCrash-free sessions, interaction latencySession without crash; tap-to-render < 200 ms

Choose the fewest SLIs that cover the journeys in section 2. Each extra SLI adds alerting, dashboards and review effort; an SLI nobody acts on is noise.

4. SLO targets and windows

SLO IDSLITargetWindowRationaleHistorical (last 90 days)
SLO-1SLI-1 availability99.9%30 days rollingExample: Users retry once; failures above 0.1% raise support contacts99.95%
SLO-2SLI-2 latency99% under 800 ms30 days rollingExample: Conversion drops measurably above 1 s99.4%
SLO-3SLI-3 availability99.5%30 days rollingExample: Less critical; users can refresh99.8%
SLO-4SLI-4 freshness99% within 2 min30 days rollingExample: Warehouse cut-off tolerance99.6%
SLO-5[SLI][Target][Window][Rationale][Value]

4.1 Exclusions and special periods

ExclusionRuleApproved by
Example: Announced maintenanceUp to 30 min per month, announced 72 h ahead, outside peak hoursProduct owner
Example: Synthetic and load-test trafficExcluded by synthetic="true" labelSRE lead
Example: Abusive clients blocked by WAF403 responses to blocked IPs are not valid eventsSecurity lead
[Exclusion][Rule][@name]

Dependency outages are not excluded: users do not care whose component failed. If a dependency regularly exhausts the budget, address it through the dependency's own SLO, caching, fallbacks or a change of provider.

4.2 Dependency ceiling

Dependencies set a ceiling: a service cannot be more available than the product of its hard, serial dependencies. With two dependencies at 99.95%, the ceiling is 0.99952≈99.9%0.9995^2 \approx 99.9\% before the service's own failures.

Example: with the three key dependencies in section 1 (payments provider, inventory service, PostgreSQL) at 99.95% each, the ceiling is 0.99953≈99.85%0.9995^3 \approx 99.85\%, below SLO-1 at 99.9%. SLO-1 is therefore only reachable because payment-provider failures fall back to a secondary provider and inventory calls are retried; record this dependence in section 3.3 and test the fallback, or lower the target.

5. Error budget

For an SLO target TT and NN valid events in the window, the error budget is:

Bevents=(1−T)×NBtime=(1−T)×WB_{\text{events}} = (1 - T) \times N \qquad B_{\text{time}} = (1 - T) \times W

where WW is the window length. For SLO-1 with T=0.999T = 0.999 and W=30 days=43,200W = 30 \text{ days} = 43{,}200 minutes:

Btime=0.001×43,200=43.2 minutesB_{\text{time}} = 0.001 \times 43{,}200 = 43.2 \text{ minutes}

With an Example: volume of N=92,000,000N = 92{,}000{,}000 requests per 30 days, Bevents=92,000B_{\text{events}} = 92{,}000 failed requests.

TargetBudget per 30 daysBudget per 7 daysBudget per day
99%7.2 h1.68 h14.4 min
99.5%3.6 h50.4 min7.2 min
99.9%43.2 min10.1 min1.44 min
99.95%21.6 min5.04 min43.2 s
99.99%4.32 min1.01 min8.64 s

Budget remaining is reported as:

Remaining=1−bad events in windowBevents\text{Remaining} = 1 - \frac{\text{bad events in window}}{B_{\text{events}}}

6. Alerting

The burn rate bb is the observed error rate divided by the allowed error rate (1−T)(1 - T). Consuming a fraction ff of a budget period PP within an alert window ww requires:

b=f×Pwb = \frac{f \times P}{w}

Example: consuming 2% of a 30-day (720 h) budget in 1 hour gives b=0.02×720/1=14.4b = 0.02 \times 720 / 1 = 14.4; for SLO-1 that is an error rate of 14.4×0.1%=1.44%14.4 \times 0.1\% = 1.44\%. For a 28-day window (672 h) the same rule gives 0.02×672/1=13.440.02 \times 672 / 1 = 13.44, so recompute the thresholds whenever the window changes.

This section applies the organisation Alerting Policy (ops/alerting-policy): SLO burn-rate alerts are the default paging signal, and every alert carries the metadata the policy requires (owner, severity, runbook URL, dashboard and SLO link). Where this document and the policy differ, the policy wins unless a recorded exception exists.

6.1 Burn-rate alert table

AlertBudget consumedLong windowShort windowBurn rateError rate threshold (SLO-1)Action
Fast burn2%1 h5 min14.41.44%Page on-call
Medium burn5%6 h30 min60.6%Page on-call
Slow burn10%3 days6 h10.1%Ticket for next working day

Check: medium burn 0.05×720/6=60.05 \times 720 / 6 = 6, error rate 6×0.1%=0.6%6 \times 0.1\% = 0.6\%; slow burn 0.10×720/72=10.10 \times 720 / 72 = 1, error rate 0.1%0.1\%.

An alert fires only when both the long and the short window exceed the threshold. Alert rules live in [repository/path/alerts.yaml]; each alert links to its section in the runbook.

6.2 Responding to a burn-rate alert

When a burn-rate alert fires, the on-call engineer:

  1. Checks the SLO dashboard for the burning SLI and the deploy markers in the window.
  2. Follows the alert's runbook section; if a deploy correlates, rolls back first and investigates second.
  3. Declares an incident if the fast-burn alert fires or user impact is confirmed, and sets its severity (SEV1 to SEV4) with the Incident Severity Matrix (ops/incident-severity-matrix).
  4. Records budget consumed in the incident record so the postmortem can quote it.

6.3 Supporting alerts

AlertConditionSeverityReason
Example: DB connection saturation> 85% for 5 minTicketPrecursor of SLI-1 failures
Example: Certificate expiry< 14 daysTicketPrevents outage
[Alert][Condition][Severity][Reason]

7. Error budget policy summary

This service follows the shared Error Budget Policy (ops/error-budget-policy). The summary below is for quick reference; the policy document wins if they differ.

Budget remaining (30-day)Expected behaviour
> 50%Normal release cadence; experiments allowed
25-50%Releases continue; reliability items in each sprint
0-25%Only low-risk releases; postmortem items take priority
ExhaustedFeature freeze except security and reliability fixes until budget recovers above [10%]
Single incident > 20% of budgetMandatory postmortem (see dev/postmortem)

Service-specific exceptions: [none / for example "peak season freeze from YYYY-MM-DD to YYYY-MM-DD regardless of budget"].

8. Dashboards and reporting

The SLO dashboard is the single source for the numbers in reviews.

ArtefactContentLinkAudience
SLO dashboardSLIs, targets, budget remaining, burn rate, deploy markers[link]Team, on-call
Weekly reportBudget remaining per SLO, top contributors to burn[link]Team, product owner
Monthly review packTrends, incidents, policy actions taken[link]Engineering leadership

9. Review and change process

SLOs are reviewed [monthly] by the service team and [quarterly] with the product owner. A change to an SLI definition or target follows these steps:

  1. Proposal with evidence (historical attainment, user research, incident data).
  2. Impact check on alerting thresholds and on the error budget policy.
  3. Approval by the roles in Document control.
  4. Version increment in the revision history; alerts and dashboards updated in the same change.
Review questionEvidence
Did the SLOs reflect user happiness this period?Support tickets and complaints versus burn periods
Were we much better than target for the whole quarter?Consider tightening, or spending the budget on velocity
Did any incident hurt users without burning budget?SLI blind spot; revise the specification
Were pages actionable?Alert review: count of pages and false positives

Glossary and references

TermMeaning in this document
CUJCritical user journey: a task users must be able to complete, in user language (section 2)
SLIService level indicator: ratio of good events to valid events, measured at a named point
SLOService level objective: target for one SLI over one window
Error budgetAllowed unreliability, 1−T1 - T, over the window, in events or time
Burn rateObserved error rate divided by the allowed error rate; 1 uses the budget exactly by the end of the window
Multiwindow alertAlert that fires only when both a long and a short window exceed the burn-rate threshold
SEV1 to SEV4Incident severity levels defined in the Incident Severity Matrix

References:

ReferenceUse in this document
Google, Site Reliability Engineering: How Google Runs Production Systems, first edition (O'Reilly, 2016) and second edition (O'Reilly, 2026)SLO and error budget practice (cited by name only)
Google, The Site Reliability Workbook (O'Reilly, 2018)SLO implementation and burn-rate alerting practice (cited by name only)
Alerting Policy (ops/alerting-policy)Paging rules and alert metadata for section 6
Error Budget Policy (ops/error-budget-policy)Consequences summarised in section 7
Observability Specification (ops/observability-spec)Metric names and telemetry behind the SLIs
Service Level Agreement (ops/service-level-agreement)Contractual commitments, looser than the SLO
Postmortem (dev/postmortem)Incidents that consume a large share of budget
Incident Severity Matrix (ops/incident-severity-matrix)Severity levels SEV1 to SEV4 used in section 6.2

Standard and licence note

Based on the service level objective practice described in Google's Site Reliability Engineering books (first edition 2016, second edition 2026) and The Site Reliability Workbook (concepts only: SLI as a ratio of good to valid events, error budgets, error budget policy, multiwindow multi-burn-rate alerting). The books are cited by name only; no passages are paraphrased and all numbers are worked examples. This template is original text written for this collection and reproduces no text from those sources; check the current editions for changes in practice. Template licence: MIT.

Related templates