SLO meaning: what is a service level objective?
SLO stands for service level objective: an internal target for a service level indicator over a time window, for example 99.9% of requests succeed over a rolling 28 days. It defines how reliable the service needs to be, and the gap between 100% and the SLO is the error budget teams can spend on change.
| SLI | SLO | SLA | |
|---|---|---|---|
| Stands for | Service level indicator | Service level objective | Service level agreement |
| What it is | A measurement | An internal target for that measurement | A contract with customers |
| Example | Share of requests that succeeded in under 300 ms | 99.9% of requests good over 28 days | 99.5% monthly uptime, or service credits |
| If missed | Nothing by itself | Reliability work comes before features | Money or credits go to the customer |
Why an SLO matters
Without an SLO, reliability is either ignored until customers complain or chased towards 100%, which no system reaches and which slows every release. An explicit target says when reliability is good enough and when it needs attention.
SLOs also make alerting saner: page when the error budget is burning fast, not whenever a single metric crosses a line.
How to measure an SLO
allowed bad events = (1 − SLO) × valid events in the window budget remaining = allowed bad events − bad events so far
Worked example
An API has an SLO of 99.9% over 28 days and serves about 12,000,000 requests in that window. Halfway through, 7,800 requests have failed.
- Allowed failures = 0.001 × 12,000,000 = 12,000.
- Remaining = 12,000 − 7,800 = 4,200, which is 35% of the budget.
- 65% of the budget is gone after 50% of the window.
Result: At this pace the SLO will be missed before the window ends, so the team should slow risky releases and look at what caused the failures.
How to set your first SLO in four steps
- Pick one user journey and its SLI. "Checkout API requests that return without a server error" is a good start; "server health" is not. One SLO per important journey is enough at first.
- Measure what you achieve today. Collect at least four weeks of data, ideally a quarter, from the place the SLI is defined: load balancer logs, the APM endpoint table or an external uptime check.
- Set the target just below what you achieve. If the last 90 days delivered 99.93%, a 99.9% SLO means normal months use about 70% of the budget (0.07% of failures against an allowance of 0.1%). Setting 99.95% would turn every normal month into a breach.
- Agree on the window and the policy. Choose rolling or calendar (next section), write down what happens at 50%, 75% and 100% of the error budget, and review the target every quarter.
Rolling vs calendar windows: how much the budget changes
The same target allows a different number of minutes depending on the window. A rolling 28-day window always holds four of each weekday, so weekly traffic patterns do not skew it; calendar months match invoices and SLA credits but vary from 28 to 31 days.
| Window | Minutes | Budget at 99.5% | Budget at 99.9% | Budget at 99.95% |
|---|---|---|---|---|
| Rolling 28 days | 40,320 | 201.6 min | 40.32 min | 20.16 min |
| Rolling 30 days | 43,200 | 216 min | 43.2 min | 21.6 min |
| Calendar month, 31 days | 44,640 | 223.2 min | 44.64 min | 22.32 min |
| Calendar month, February (28 days) | 40,320 | 201.6 min | 40.32 min | 20.16 min |
| Quarter (90 days) | 129,600 | 648 min | 129.6 min | 64.8 min |
A calendar window also resets: an outage on the 30th is forgotten two days later, while a rolling window keeps it for 28 or 30 days. That is why rolling windows suit engineering decisions and calendar windows suit contracts.
Your SLO cannot beat your dependencies
If a request needs every one of several components to work, their availabilities multiply. A checkout that needs your code (99.95%), the database (99.95%), a payment API (99.9%) and DNS plus CDN (99.99%) can expect at most 0.9995 × 0.9995 × 0.999 × 0.9999 = 99.79%, before your own deploys and bugs. A 99.9% SLO on that path is already ambitious.
Redundancy works the other way. Two independent replicas at 99.5% each, where either can serve the request, give 1 − (0.005 × 0.005) = 99.997%. The word that matters is independent: replicas in the same zone, behind the same load balancer or running the same bad release fail together.
Can your monitoring see your SLO?
An SLO is only as precise as the data behind it. With external checks, every check is a sample; with 15-minute checks, a 99.9% SLO over 30 days allows fewer than three failed checks, and one false alarm uses a third of the month's budget.
| Check interval | Checks in 30 days | Failed checks a 99.9% SLO allows | Uptime cost of one failed check |
|---|---|---|---|
| Every 1 min | 43,200 | 43.2 | 0.0023% |
| Every 5 min | 8,640 | 8.64 | 0.0116% |
| Every 15 min | 2,880 | 2.88 | 0.0347% |
For targets of 99.95% and tighter, pair one-minute external checks with request-based SLIs from logs or APM, which count every request instead of sampling. See what a target allows with the SLA calculator, or the 99.95% and 99.99% pages.
Latency SLOs: write them as good events, not as an average
"p99 latency below 400 ms" averaged per minute is hard to budget. Write the same intent as a ratio: 99% of valid requests complete within 400 ms over 28 days. Then the error budget is a count of slow requests, and it adds up correctly across busy and quiet hours.
Worked example: 2,000,000 requests in the window, 1.3% of them slower than 400 ms. The SLO allows 1% × 2,000,000 = 20,000 slow requests; the service had 26,000 slow requests, so the latency SLO is missed even if availability was perfect. Track availability and latency as two SLOs on the same journey.
Common mistakes
- Aiming for 100%. It cannot be achieved, and each extra nine costs far more than the last.
- Too many SLOs. A few that reflect user journeys beat dozens nobody reads.
- Setting the SLO from aspiration. Start from what you achieve now and what users need, then tighten.
- No consequence. An SLO that changes no decision when it is missed is decoration. Pair it with an error budget policy.
- Ignoring dependencies. A 99.99% SLO on a path that needs a 99.95% database and a 99.9% payment API cannot be met without redundancy. Multiply the availabilities first.
- Checks too sparse for the target. With 15-minute checks, 99.9% over 30 days allows fewer than three failed checks, so one false alarm uses a third of the budget.
How Vigil handles an SLO
- Vigil lets you set an SLO target per monitor, tracks the error budget, and shows both on the SLO dashboard tile and in the printable SLA report.
- Use the free SLA calculator to see what a target means in minutes, for example 99.9%.
- Triggers and adaptive latency alerts can warn about a slow degradation before it eats the budget.
SLO (service level objective): frequently asked questions
What is a typical SLO?
Many user-facing services use 99.9% or 99.95% availability over 28 or 30 days, often with a latency SLO such as 99% of requests under a few hundred milliseconds. The right value depends on users and dependencies.
Should the window be calendar-based or rolling?
Rolling windows, such as the last 28 days, react smoothly and suit engineering decisions; calendar months match billing and contracts.
What is the difference between an SLO and an SLA?
The SLO is the internal target; the SLA is the external promise with consequences. Set the SLO stricter so you notice trouble before the SLA is at risk.