SLO: service level objective
An SLO (service level objective) is a target value or range for a service level indicator (SLI), for example "99.9% of requests succeed" or "99% of requests finish in under 300 ms". It is the internal reliability goal a team measures itself against.
- An SLO pairs a measurable indicator (SLI) with a target and a time window.
- An SLO has no contractual penalty. Add consequences and it becomes an SLA.
- The gap between the SLO and 100% is the error budget a team can spend.
How do SLI, SLO, SLA and error budget relate?
| Term | What it is | Example |
|---|---|---|
| SLI | A measured indicator of service quality | Share of HTTP requests that return a non-5xx response |
| SLO | A target for that indicator over a window | 99.9% of requests succeed over 28 days |
| SLA | A contract with consequences if SLOs are missed | Service credit if monthly availability falls below the promised figure |
| Error budget | 100% minus the SLO | 0.1% of requests may fail: 3,000 of 3 million |
Source figures: Google SRE Workbook, implementing SLOs.
How do you write a useful SLO?
- 01
Pick what users notice
Choose an indicator tied to user experience, such as successful page loads or request latency, not CPU load.
- 02
Define good and total events
Write the SLI as good events divided by total events, so it runs from 0% to 100%.
- 03
Set a target and window
Google suggests a four-week rolling window as a general-purpose choice, with a target below 100%.
- 04
Write an error budget policy
Decide in advance what happens when the budget is spent, for example pausing risky releases.
SLO versus SLA test
Ask what happens if the target is missed. If there is no explicit consequence, it is an SLO. If a rebate or penalty applies, it is an SLA.
Common questions
What is the difference between an SLO and an SLA?
An SLO is a reliability target a team sets and manages. An SLA is a contract with users that attaches consequences, often financial, to missing the targets it contains. SLOs are usually stricter than the SLA so the team gets a warning before a penalty applies.
What is a good SLO target?
It depends on what users tolerate and what you can afford. A target below 100% is deliberate: it leaves an error budget for releases and failures. Google published 99.95% as the availability target for Compute Engine, which shows targets are chosen per service.
What is an error budget?
It is 100% minus the SLO. With a 99.9% success target and 3 million requests in four weeks, the budget is 3,000 failed requests. One outage causing 1,500 errors uses half of it.
Keep reading
Watch your domains automatically
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.