What are SLAs, SLOs and SLIs?
BeginnerConceptReliability, monitoring & incidents
Answer
In one line: An SLI is a measurement of how the service is doing, an SLO is the internal target for that measurement, and an SLA is a contract with customers that promises a level of service, usually with penalties if it's missed.
SLI — Service Level Indicator (the measurement)
- A number that reflects user experience.
- Examples:
- Availability: successful requests ÷ total requests.
- Latency: percentage of requests faster than 300 ms.
- Freshness: percentage of data updated within 5 minutes.
SLO — Service Level Objective (the target)
- The goal the team sets for an SLI over a time window.
- Examples: "99.9% of requests succeed over 30 days", "95% of requests complete in under 300 ms".
- Used internally to decide when to focus on reliability versus new features.
SLA — Service Level Agreement (the promise)
- A business or legal agreement with customers.
- Example: "99.5% monthly uptime, or customers get a 10% service credit."
- SLAs are usually looser than SLOs, so you get warning (and time to react) before breaking a contract.
How they fit together:
SLI: 99.93% of requests succeeded this month
SLO: target 99.9% → we're meeting it ✓
SLA: promise 99.5% → contract safe ✓
What "nines" mean (per 30 days):
| Availability | Allowed downtime |
|---|---|
| 99% | ~7.2 hours |
| 99.9% | ~43 minutes |
| 99.95% | ~22 minutes |
| 99.99% | ~4.3 minutes |
Good practices:
- Choose SLIs that reflect what users feel, not just server CPU.
- Don't aim for 100% — it's impossibly expensive and blocks all change.
- Alert when the SLO is at risk (error budget burn), not on every small blip.
Tip for interviews: define all three clearly, mention that SLAs are looser than SLOs, and know roughly how much downtime 99.9% allows.
More on Reliability, monitoring & incidents
What is an error budget, and how is it used?IntermediateWhat are the four golden signals of monitoring?BeginnerWhat is the difference between metrics, logs and traces?BeginnerWhat makes a good alert? How do you avoid alert fatigue?BeginnerWhat is an incident, and what is incident management?BeginnerWhat are MTTR, MTTD, MTBF and MTTF?Beginner