"Our site should never go down" is not a target; it is a wish. Every system fails sometimes, and making it fail less costs time that could go into features. Service level objectives (SLOs) turn that trade-off into a number your whole team can agree on.
The three terms
- SLI (service level indicator): a measurement of how well the service works for users. For example, the share of HTTP requests that succeed in under 500 ms.
- SLO (service level objective): the target for that indicator over a period. For example, 99.5% of requests over 30 days.
- Error budget: what the SLO allows to go wrong. With 99.5%, the budget is 0.5% of requests.
An SLA (agreement) is different: it is a contract with customers, usually with penalties, and it should be looser than your internal SLO.
Step 1: choose SLIs your users would recognise
Good SLIs describe what a user experiences, not what a server feels.
| Service | Good SLI | Weak SLI |
|---|---|---|
| Website | Share of page loads with LCP under 2.5 s | Server CPU under 70% |
| API | Share of requests with status < 500 and latency < 500 ms | Number of pods running |
| Background jobs | Share of jobs finished within 5 minutes | Queue length |
Two or three SLIs per service are enough: usually availability (did it work?) and latency (was it fast enough?).
Step 2: set a realistic target
Start from what you achieve today. If the last 30 days were 99.7% successful, an SLO of 99.5% is realistic; 99.99% is not.
Each extra nine costs far more than the last:
| SLO | Allowed failure in 30 days |
|---|---|
| 99% | about 7 hours 18 minutes |
| 99.5% | about 3 hours 39 minutes |
| 99.9% | about 43 minutes |
| 99.99% | about 4 minutes |
Most small teams do well with 99.5% to 99.9% for customer-facing services.
Step 3: calculate the error budget
Error budget = (1 − SLO) × total events in the period.
If your API serves 10 million requests a month with a 99.9% SLO, you may fail 10,000 requests that month. For time-based SLOs, 99.9% over 30 days gives about 43 minutes.
Step 4: use the budget to make decisions
The budget is a shared agreement between people who ship and people who keep things running:
- Budget left: ship as usual, take reasonable risks, run experiments.
- Budget burning fast: slow down risky changes and look at what is failing.
- Budget spent: freeze non-urgent releases and spend the time on reliability until the period resets.
Step 5: alert on burn rate, not on every error
Rather than alerting on individual failures, alert when you are using the budget too quickly. A common pattern:
- page when you would use 2% of the monthly budget in one hour;
- send a ticket when you would use 10% in three days.
This catches both sudden outages and slow leaks, without paging for a single bad minute.
Measuring SLIs in practice
- Availability and latency of APIs come straight from APM: request counts, errors and latency percentiles per endpoint. See what is APM.
- Website experience comes from real user monitoring: the share of visits with good Core Web Vitals.
- External availability comes from uptime checks, which also cover the moments when no one is visiting.
A template to copy
Service: Checkout API SLI: share of
POST /checkoutrequests with status below 500 and latency below 800 ms SLO: 99.5% over a rolling 30 days Error budget: 0.5% of requests (about 3 hours 39 minutes of full outage) Alert: page when burn rate is above 14× for 1 hour; ticket when above 2× for 3 days Owner: Payments team
Start with one service, review the numbers after a month, and adjust. An SLO you actually use is worth more than a perfect one you do not.
Common mistakes when starting with SLOs
- Too many SLOs. Ten objectives per service are ten things nobody watches. Start with one availability and one latency SLO for your most important user journey.
- Measuring the wrong place. Server-side success can look perfect while a CDN or DNS problem stops users from reaching you. Combine APM data with an external uptime check.
- Targets nobody agreed to. An SLO set by one engineer is ignored. Agree it with product and support, and write down what happens when the budget runs out.
- Never reviewing. Revisit each SLO every quarter. If you always have most of the budget left, you can ship faster; if you always run out, the target or the system needs work.
Worked example: a monthly review
| Week | Requests | Failed | Budget used (of 0.5%) |
|---|---|---|---|
| 1 | 2.4 M | 1,900 | 16% |
| 2 | 2.5 M | 7,800 | 79% (bad deploy) |
| 3 | 2.6 M | 900 | 86% |
| 4 | 2.5 M | 800 | 93% |
With 93% of the budget used, the team agreed to ship only low-risk changes in the last days of the month and to add a canary step to deployments, the action item that came out of week 2's postmortem.
What is the difference between an SLO and an SLA?
An SLO is an internal reliability target. An SLA is a contract with customers, often with penalties, and should be looser than the SLO so you have room to react.
What is a good SLO for a website?
Most small teams start between 99.5% and 99.9% availability over 30 days, based on what they already achieve today.
How do you calculate an error budget?
Multiply (1 − SLO) by the number of events in the period. A 99.9% SLO over 10 million requests allows 10,000 failed requests.
Try VitalRix free
Uptime monitoring, APM, logs, real user monitoring and status pages in one place. No credit card needed.