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
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
| Field | Value |
|---|---|
| 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 from | YYYY-MM-DD |
| Next review | YYYY-MM-DD |
| Last updated | YYYY-MM-DD |
| Classification | [Internal] |
Approvals
| Role | Name | Decision | Date |
|---|---|---|---|
| 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
| Version | Date | Author | Change summary |
|---|---|---|---|
| 0.1 | YYYY-MM-DD | [@name] | Draft SLIs from user journeys |
| 1.0 | YYYY-MM-DD | [@name] | Example: Targets approved; alerts deployed |
| 1.1 | YYYY-MM-DD | [@name] | Example: Latency threshold changed from 500 ms to 800 ms after RUM analysis |
| 1.2 | 2026-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.
| Item | Value |
|---|---|
| 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.
| ID | Journey | Why it matters | Steps measured | Related SLIs |
|---|---|---|---|---|
| CUJ-1 | Example: Customer places an order | Direct revenue | POST /checkout, POST /payments | SLI-1, SLI-2 |
| CUJ-2 | Example: Customer views order confirmation | Trust; reduces support contacts | GET /orders/{id} | SLI-3 |
| CUJ-3 | Example: Order reaches the warehouse system | Fulfilment on time | Order event published | SLI-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:
3.1 SLI specifications
| ID | Type | Specification | Valid events | Good events | Measured at |
|---|---|---|---|---|---|
| SLI-1 | Availability | Example: Proportion of checkout requests served without a server error | Requests to /api/checkout/*, excluding health checks and requests from synthetic tests | Responses with status other than 5xx and 429 | Load balancer logs |
| SLI-2 | Latency | Example: Proportion of checkout requests served faster than 800 ms | Same as SLI-1, successful only | Duration < 800 ms (LB request time) | Load balancer histogram |
| SLI-3 | Availability | Example: Proportion of order page loads that succeed | GET /orders/{id} from real users | Non-5xx responses | Load balancer logs |
| SLI-4 | Freshness | Example: Proportion of orders published to the warehouse topic within 2 minutes | Orders created | Publish timestamp minus create timestamp < 120 s | Pipeline 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 type | Typical SLI types | Example good event |
|---|---|---|
| Request-driven (API, web) | Availability, latency, quality (degraded responses) | Non-5xx response under 800 ms |
| Data pipeline | Freshness, correctness, coverage | Record processed within 10 minutes with valid output |
| Storage | Durability, availability, latency | Object read returns the bytes written |
| Scheduled job | Completion, timeliness | Nightly job finishes before 06:00 UTC |
| Client application | Crash-free sessions, interaction latency | Session 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 ID | SLI | Target | Window | Rationale | Historical (last 90 days) |
|---|---|---|---|---|---|
| SLO-1 | SLI-1 availability | 99.9% | 30 days rolling | Example: Users retry once; failures above 0.1% raise support contacts | 99.95% |
| SLO-2 | SLI-2 latency | 99% under 800 ms | 30 days rolling | Example: Conversion drops measurably above 1 s | 99.4% |
| SLO-3 | SLI-3 availability | 99.5% | 30 days rolling | Example: Less critical; users can refresh | 99.8% |
| SLO-4 | SLI-4 freshness | 99% within 2 min | 30 days rolling | Example: Warehouse cut-off tolerance | 99.6% |
| SLO-5 | [SLI] | [Target] | [Window] | [Rationale] | [Value] |
4.1 Exclusions and special periods
| Exclusion | Rule | Approved by |
|---|---|---|
| Example: Announced maintenance | Up to 30 min per month, announced 72 h ahead, outside peak hours | Product owner |
| Example: Synthetic and load-test traffic | Excluded by synthetic="true" label | SRE lead |
| Example: Abusive clients blocked by WAF | 403 responses to blocked IPs are not valid events | Security 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 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 , 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 and valid events in the window, the error budget is:
where is the window length. For SLO-1 with and minutes:
With an Example: volume of requests per 30 days, failed requests.
| Target | Budget per 30 days | Budget per 7 days | Budget per day |
|---|---|---|---|
| 99% | 7.2 h | 1.68 h | 14.4 min |
| 99.5% | 3.6 h | 50.4 min | 7.2 min |
| 99.9% | 43.2 min | 10.1 min | 1.44 min |
| 99.95% | 21.6 min | 5.04 min | 43.2 s |
| 99.99% | 4.32 min | 1.01 min | 8.64 s |
Budget remaining is reported as:
6. Alerting
The burn rate is the observed error rate divided by the allowed error rate . Consuming a fraction of a budget period within an alert window requires:
Example: consuming 2% of a 30-day (720 h) budget in 1 hour gives ; for SLO-1 that is an error rate of . For a 28-day window (672 h) the same rule gives , 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
| Alert | Budget consumed | Long window | Short window | Burn rate | Error rate threshold (SLO-1) | Action |
|---|---|---|---|---|---|---|
| Fast burn | 2% | 1 h | 5 min | 14.4 | 1.44% | Page on-call |
| Medium burn | 5% | 6 h | 30 min | 6 | 0.6% | Page on-call |
| Slow burn | 10% | 3 days | 6 h | 1 | 0.1% | Ticket for next working day |
Check: medium burn , error rate ; slow burn , error rate .
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:
- Checks the SLO dashboard for the burning SLI and the deploy markers in the window.
- Follows the alert's runbook section; if a deploy correlates, rolls back first and investigates second.
- 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). - Records budget consumed in the incident record so the postmortem can quote it.
6.3 Supporting alerts
| Alert | Condition | Severity | Reason |
|---|---|---|---|
| Example: DB connection saturation | > 85% for 5 min | Ticket | Precursor of SLI-1 failures |
| Example: Certificate expiry | < 14 days | Ticket | Prevents 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 |
| Exhausted | Feature freeze except security and reliability fixes until budget recovers above [10%] |
| Single incident > 20% of budget | Mandatory 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.
| Artefact | Content | Link | Audience |
|---|---|---|---|
| SLO dashboard | SLIs, targets, budget remaining, burn rate, deploy markers | [link] | Team, on-call |
| Weekly report | Budget remaining per SLO, top contributors to burn | [link] | Team, product owner |
| Monthly review pack | Trends, 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:
- Proposal with evidence (historical attainment, user research, incident data).
- Impact check on alerting thresholds and on the error budget policy.
- Approval by the roles in Document control.
- Version increment in the revision history; alerts and dashboards updated in the same change.
| Review question | Evidence |
|---|---|
| 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
| Term | Meaning in this document |
|---|---|
| CUJ | Critical user journey: a task users must be able to complete, in user language (section 2) |
| SLI | Service level indicator: ratio of good events to valid events, measured at a named point |
| SLO | Service level objective: target for one SLI over one window |
| Error budget | Allowed unreliability, , over the window, in events or time |
| Burn rate | Observed error rate divided by the allowed error rate; 1 uses the budget exactly by the end of the window |
| Multiwindow alert | Alert that fires only when both a long and a short window exceed the burn-rate threshold |
| SEV1 to SEV4 | Incident severity levels defined in the Incident Severity Matrix |
References:
| Reference | Use 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
Software Design Document Template
Lean feature design doc: context, goals and non-goals, design, API and data changes, alternatives, cross-cutting concerns, rollout
Software & EngineeringMigration Plan Template
System or data migration: strategy, phases, data mapping, reconciliation, cutover runbook, rollback, decommissioning
Software & EngineeringIncident Postmortem Template
Blameless incident postmortem: severity per matrix, impact and error budget, UTC timeline, root cause, 5 Whys, security incident links, action items