Dev tools
SLO vs SLA vs SLI: Reliability Targets Explained
SLO vs SLA explained with SLIs: what each one is, real examples, error budget maths, burn rate alerts and how to set targets you can actually meet.
In SLO vs SLA, the difference is who the promise is for and what happens if you miss it. An SLO (service level objective) is an internal reliability target, such as "99.9% of requests succeed over 30 days". An SLA (service level agreement) is a contract with customers that includes consequences, usually service credits, if a promised level isn't met. Both are measured with an SLI (service level indicator), the actual metric, such as the share of requests that succeed.
Put simply, the SLI is what you measure, the SLO is the target you aim for, and the SLA is what you legally promise. A good setup keeps the SLO stricter than the SLA, so the team reacts long before customers are owed money. This guide goes past the definitions. It covers SLA vs SLO vs SLI examples for different services, error budget maths, burn rate alerting, a worked example with real numbers, a real cloud SLA and the mistakes that make SLOs useless.
SLO vs SLA vs SLI at a Glance
| SLI | SLO | SLA | |
|---|---|---|---|
| Stands for | Service level indicator | Service level objective | Service level agreement |
| What it is | A measurement | A target for a measurement | A contract with consequences |
| Example | 99.95% of requests succeeded this month | 99.9% of requests succeed over 30 days | 99.5% monthly uptime or 10% service credit |
| Audience | Engineers | Engineering and product teams | Customers, sales, legal |
| Who sets it | Engineers choose what to measure | Product and engineering together | Business, legal and leadership |
| If missed | Nothing; it's just data | Team slows releases and fixes reliability (error budget policy) | Credits, refunds or contract penalties |
| Typical strictness | n/a | Stricter than the SLA | Looser than the SLO |
Google's Site Reliability Engineering book gives a simple test to tell an SLO from an SLA. Ask "what happens if the SLOs aren't met?" If there is no explicit consequence, you are almost certainly looking at an SLO.
What Is an SLI?
A service level indicator is a carefully defined, quantitative measure of some aspect of the service users receive. The SRE book names request latency as the most common SLI, alongside error rate, throughput and availability.
The most useful way to write an SLI is as a ratio of good events to valid events:
SLI = good events ÷ valid events × 100%
- Availability: successful HTTP responses (not 5xx) ÷ all valid requests.
- Latency: requests served faster than 300 ms ÷ all valid requests.
- Freshness: reads that return data updated within the last minute ÷ all reads.
- Correctness: pipeline outputs that pass validation ÷ all outputs.
- Throughput or completion: batch jobs finished within their window ÷ all scheduled jobs.
Ratios work well because they always run from 0% to 100%, they read the same way for every service, and they turn straight into an error budget.
Where you measure matters. An SLI measured at the load balancer sees requests the servers never received. One measured inside the server misses failures in the network or the load balancer. Synthetic probes and real-user monitoring see what users see but are noisier. Pick the point closest to the user that you can measure reliably, and write it down.
What Is an SLO?
A service level objective is a target value or range for an SLI, over a time window. The SRE book's structure is: SLI ≤ target, or lower bound ≤ SLI ≤ upper bound.
A complete SLO has four parts:
- The SLI: what is measured and where.
- The target: for example 99.9%.
- The window: usually a rolling 28 or 30 days.
- The scope: which requests, users or regions count. Health checks and requests from internal test traffic are usually excluded.
Example: "99.9% of valid checkout API requests, measured at the load balancer, return a non-5xx response within 1 second, over a rolling 30 days."
SLOs are an engineering and product decision. They say how reliable the service needs to be for users to be happy. They don't say how reliable it can possibly be. 100% is the wrong target for almost everything. Users can't tell the difference between 99.99% and 100% when their own Wi-Fi and phone fail more often than that, and chasing the last fraction of a percent stops all other work.
What Is an SLA?
A service level agreement is an explicit or implicit contract with users that includes consequences of meeting or missing the SLOs it contains. The consequences are usually financial, such as credits or refunds, but they can include the right to terminate a contract.
A real example: Amazon EC2's published SLA makes two commitments. The Region-Level SLA promises a Monthly Uptime Percentage of at least 99.99% for EC2 deployed across two or more Availability Zones. If it falls short, customers get a 10% service credit for 99.0% to 99.99%, 30% for 95.0% to 99.0%, and 100% below 95.0%. The Instance-Level SLA promises 99.5% for each individual instance, with the same credit steps. Credits apply to future bills and must usually be requested.
That example shows typical SLA features:
- Narrow definitions. "Unavailable" is defined precisely, and many causes are excluded, such as customer misconfiguration, scheduled maintenance and force majeure.
- Credits, not damages. The penalty is a percentage of that service's bill, not your lost revenue.
- Architecture conditions. The stronger promise applies only if you deploy across zones.
SRE teams don't usually write SLAs. Legal and business teams do. But engineers should make sure every SLA is backed by a stricter internal SLO, or the company is promising something it doesn't measure.
SLO vs SLA: The Key Differences
The differences between SLO vs SLA come down to five points:
- Internal vs external. SLOs are for the team; SLAs are for customers.
- Consequences. Missing an SLO triggers an internal response; missing an SLA costs money.
- Strictness. The SLO should be stricter, so the team has a buffer. If your SLA is 99.5%, an internal SLO of 99.9% gives you room to notice and fix problems first.
- Who writes them. Engineers and product managers set SLOs; legal and sales negotiate SLAs.
- How often they change. SLOs are reviewed every quarter or so as you learn. SLAs change only with new contracts.
Not every service needs an SLA. Free products and internal services usually have none. But every important service benefits from SLOs, because they turn "is it reliable enough?" into a number the team can act on.
SLA vs SLO vs SLI Examples
Here are SLA vs SLO vs SLI examples for common types of service. The SLA column is illustrative, since many internal services have no SLA at all.
| Service | SLI | SLO | Possible SLA |
|---|---|---|---|
| Public REST API | Share of requests returning non-5xx within 1 s | 99.9% over 30 days | 99.5% monthly; 10% credit below, 25% below 99% |
| Checkout page | Share of page loads with Largest Contentful Paint under 2.5 s | 95% over 28 days | None (internal target) |
| Login service | Share of login attempts that succeed or fail for valid reasons (not errors) | 99.95% over 30 days | Covered by the product's overall SLA |
| Data pipeline | Share of daily reports delivered by 07:00 | 99% of days per quarter | 98% on-time delivery or credit |
| Object storage | Share of read requests that succeed | 99.99% over 30 days | 99.9% monthly with tiered credits |
| Video streaming | Share of playback starts under 2 s | 99% over 7 days | None |
| Support desk | Share of urgent tickets answered within 1 hour | 95% per month | 90% per month in enterprise contracts |
For web pages, Google's Core Web Vitals thresholds make good latency SLIs, because they track what users feel. Our guide to Core Web Vitals explains the metrics.
Error Budgets
What is error budget, exactly?
An error budget is the amount of unreliability your SLO allows: error budget = 100% − SLO target. With a 99.9% availability SLO, 0.1% of requests (or of time) can fail before the SLO is breached. The budget turns the target into something you can spend, on risky releases, experiments and planned maintenance.
Here's what common targets allow:
| SLO target | Error budget | Allowed downtime per 30 days | Allowed downtime per year |
|---|---|---|---|
| 99% | 1% | 7 hours 12 minutes | about 3.65 days |
| 99.5% | 0.5% | 3 hours 36 minutes | about 1.83 days |
| 99.9% | 0.1% | 43.2 minutes | about 8.76 hours |
| 99.95% | 0.05% | 21.6 minutes | about 4.38 hours |
| 99.99% | 0.01% | 4.32 minutes | about 52.6 minutes |
| 99.999% | 0.001% | about 26 seconds | about 5.26 minutes |
For request-based SLIs, think in failed requests rather than minutes. At 50 million requests a month and a 99.9% SLO, the budget is 50,000 failed requests.
Error budget policy
The budget only works with an agreed policy for what happens when it runs low. A typical error budget policy:
- Budget healthy: release as normal, run experiments, do planned risky work.
- Budget below 50% mid-window: extra review for risky changes, prioritise known reliability fixes.
- Budget exhausted: freeze feature releases except urgent fixes, and put the team on reliability work until the SLI recovers.
- Single incident uses over 20% of budget: write a postmortem with action items.
Write the policy down and get product leadership to sign it before you need it. Agreeing on a release freeze in the middle of an incident rarely works.
Error Budget and Burn Rate
The link between error budget and burn rate is what makes SLOs useful for alerting. Burn rate is how fast you are using up the budget compared to the rate that would use it up exactly by the end of the window.
Burn rate = observed error rate ÷ error rate allowed by the SLO
- With a 99.9% SLO, the allowed error rate is 0.1%.
- An error rate of 0.1% is a burn rate of 1: the budget lasts exactly 30 days.
- An error rate of 1.44% is a burn rate of 14.4: in one hour you use 14.4 ÷ 720 hours = 2% of the monthly budget, and the whole budget would be gone in about two days.
Alerting on burn rate pages people for problems that threaten the SLO and ignores brief blips. Google's SRE Workbook recommends multiwindow, multi-burn-rate alerts as a starting point for a 99.9% SLO:
| Severity | Long window | Short window | Burn rate | Budget used when it fires |
|---|---|---|---|---|
| Page | 1 hour | 5 minutes | 14.4 | 2% |
| Page | 6 hours | 30 minutes | 6 | 5% |
| Ticket | 3 days | 6 hours | 1 | 10% |
An alert fires only when both windows exceed the burn rate. The long window shows the problem is real and significant, and the short window shows it is still happening, so the alert clears soon after a fix. In Prometheus, the first page rule from the workbook looks like this, where the recording rules hold the error ratio over each window:
(
job:slo_errors_per_request:ratio_rate1h{job="myjob"} > (14.4*0.001)
and
job:slo_errors_per_request:ratio_rate5m{job="myjob"} > (14.4*0.001)
)A Worked Example: Payment API
A payments team runs an API that handles about 50 million requests per 30 days.
- SLIs: availability (non-5xx responses ÷ valid requests) and latency (requests under 300 ms ÷ valid requests), both measured at the load balancer.
- SLOs: 99.9% availability and 99% of requests under 300 ms, over a rolling 30 days.
- SLA to customers: 99.5% monthly availability, with service credits below that.
- Error budget: 0.1% of 50 million = 50,000 failed requests per 30 days.
Now two incidents in one month:
- A slow database failover causes 0.5% errors for 2 hours. Requests in 2 hours ≈ 50,000,000 ÷ 720 × 2 ≈ 138,900. Failed ≈ 694, about 1.4% of the budget. Burn rate is 0.5% ÷ 0.1% = 5, below the 14.4 page threshold for the 1-hour window. Averaged over 6 hours it is about 1.7, below the 6 threshold, and over 3 days it's well under 1, so no alert fires. That is the right outcome for a short, mild problem that cost little budget.
- A bad deploy returns errors for 20% of requests for 30 minutes before rollback. Requests ≈ 34,700; failed ≈ 6,940, about 13.9% of the budget. Burn rate is 200, so the page fires within minutes, from the 5-minute and 1-hour windows together.
After both, the team has used about 15% of its monthly budget. It's still well inside the SLO and far from the 99.5% SLA. The postmortem for the deploy leads to safer rollouts. Gradual traffic shifting such as blue green deployment or canaries would have capped the damage at a fraction of traffic.
SLO, SLA, SLI and Related Terms
A few other acronyms appear next to these:
- SLT (service level target): another name for the target inside an SLO; some teams use it instead of SLO.
- OLA (operational level agreement): an agreement between internal teams that supports an SLA. For example, the database team commits to a restore time so the product team can meet its customer SLA.
- KPI (key performance indicator): a business metric such as revenue, churn or sign-ups. An SLI can be a KPI, but most KPIs are not about service reliability.
- MTTR and MTBF: mean time to recovery and between failures. They're useful for incident reviews, but they don't replace user-centred SLIs.
The live SRE practice these fit into is covered in our guide to site reliability engineering.
How to Set Your First SLOs
- List the user journeys that matter: sign in, search, checkout, upload, API calls.
- Pick one or two SLIs per journey: usually availability and latency, written as good ÷ valid.
- Measure for a few weeks before setting targets. Look at what the service actually does today.
- Set the target slightly below current performance if users are happy, or above it if they aren't. Don't promise reliability you've never achieved.
- Choose a rolling window of 28 or 30 days.
- Write the error budget policy and agree it with product leadership.
- Alert on burn rate, not on raw thresholds.
- Review quarterly: tighten SLOs that are always met easily, and loosen ones that page people without users noticing.
- Check SLAs against SLOs: every SLA number should sit comfortably below its matching SLO.
Common Mistakes
- Setting SLOs at 100% or at too many nines. Each extra nine costs far more effort and leaves almost no budget for change.
- Measuring what's easy instead of what users feel. CPU usage and server uptime are not SLIs; failed checkouts are.
- Too many SLOs. Two to four per service is plenty. Dozens make none of them matter.
- SLA equal to SLO. With no buffer, every SLO miss is a contract breach.
- No error budget policy. Without agreed consequences, SLOs become dashboards nobody acts on.
- Averages for latency. Use percentiles or "share of requests under X ms"; averages hide the slow tail that users notice.
- Copying another company's targets. Your users, architecture and dependencies set the right number.
FAQ
What is SLI SLO and SLA in simple terms?
An SLI is the measurement, such as the percentage of requests that succeed. An SLO is the target for that measurement, such as 99.9% over 30 days. An SLA is a contract that promises customers a level of service and states what they get if it's missed.
Should the SLO be higher than the SLA?
Yes. The SLO should be stricter than the SLA so the team gets warned and can fix problems before contract penalties apply. A common pattern is an internal 99.9% SLO behind a 99.5% customer SLA.
How is an error budget calculated?
Subtract the SLO target from 100%. A 99.9% SLO leaves a 0.1% error budget, which is about 43 minutes of full downtime per 30 days, or 0.1% of requests if the SLI counts requests.
What is a good SLO target?
It depends on what users need and what the service achieves today. Many user-facing services use 99.9% for availability, while internal tools and batch jobs often use 99% or 99.5%. Start from measured performance and user feedback, not from a round number.
Do internal services need SLAs?
Usually not. Internal services benefit from SLOs, and sometimes from operational level agreements between teams. Formal SLAs with financial consequences are mostly for paying customers.