What are service level objectives?

In short
A service level objective (SLO) is a target value for a measurable part of a service, such as request latency or availability. It is measured by a service level indicator (SLI), which is a careful, quantitative measure of that behavior. SLOs set clear expectations and help teams decide when a service needs attention.
Why teams need them
You cannot run a service well if you do not know which behaviors matter to its users. A service level objective, or SLO, gives you a concrete target for one of those behaviors. It turns a vague goal like "the service should be fast" into a number that everyone can check.
The idea sits inside a small vocabulary. A service level indicator, or SLI, is the measurement itself. It is a carefully defined quantity, such as the share of requests that return an error. The SLO is the target that the SLI must meet, such as "at least 99.9% of requests succeed." A third term, the service level agreement (SLA), is a contract with users that attaches consequences, often money, to missing the target.
How the target is written
A useful SLO usually takes a simple form: the SLI must be less than or equal to a target, or it must fall between a lower and an upper bound. For example, a team might decide that the average response time of a search request should stay below 100 milliseconds. The number itself is a choice. Lower latency is generally better, but the right value depends on what users actually need and what the team can afford to deliver.
Some inputs are not yours to set. Incoming traffic, measured in queries per second, is shaped by users, so you cannot set an SLO on it directly. You can still set an SLO on latency, and that goal can push the team toward design choices that keep responses fast. Be aware that load and latency are often linked. Many services slow down sharply once traffic passes a certain threshold, so a latency target also depends on how much load the system carries.
Choosing good indicators
It is tempting to measure everything your monitoring system can record. That usually backfires. Too many indicators make it hard to focus on the ones that matter, and too few can leave important problems invisible. A small set of indicators, chosen from what users care about, is usually enough to judge a system's health.
The right set depends on the kind of service. A user-facing service often cares about three questions: could it respond, how long did the response take, and how much work could it handle. A storage system adds a fourth concern, durability, which asks whether the stored data is still there when needed. A data pipeline tends to focus on throughput and the time data takes to move from input to output. Correctness matters for all of them, although the team that runs the infrastructure often does not own the correctness of the data itself.
Availability is a common SLI. It is the fraction of time a service is usable, often measured as the share of well-formed requests that succeed. Near-perfect availability is realistic, while perfect availability is not. Engineers often describe availability in "nines." Two nines means 99%, and five nines means 99.999%. Each extra nine is much harder to reach, so the target should match what users truly need.
Where to measure
Most indicators are easiest to collect on the server. A monitoring system can count error responses or time how long the server takes to answer. Server-side numbers can miss problems that users still feel. A slow page script, for example, can make a page feel broken even when the server responds quickly. In those cases, measuring in the client, such as how long a page takes to become usable in a browser, gives a truer picture.
Measurements also need careful aggregation. A rate such as requests per second depends on the window you use to collect data. Averages can hide spikes, and percentiles can reveal slow outliers that averages smooth away. Decide how you will aggregate before you start comparing numbers over time.
Common mistakes
A frequent error is to publish an SLO that is not backed by a clear, objective measurement. If two sides cannot agree on how the SLI is calculated, arguments will follow. Another mistake is to treat every SLO as a contract. An SLO becomes an SLA only when a consequence is attached. Without one, a missed SLO is a signal to act, not a legal or financial event.
Teams also sometimes set targets that are either too loose to matter or too strict to meet. Both lead to wasted effort. A useful target reflects real user expectations and leaves room for the work the team needs to do.
Why it matters
Publishing an SLO sets expectations. Users who know the expected performance are less likely to assume the service is slower or faster than it really is. Clear targets also help engineers decide when to act. When an SLI drifts toward its limit, the team knows where to look, and it can make trade-offs with evidence rather than instinct.
FAQ
What is the difference between an SLI and an SLO?
An SLI is the measurement, such as the fraction of requests that succeed. An SLO is the target that this measurement should meet, such as 99.9% success over a period.
Is an SLO the same as an SLA?
No. An SLO is a target. An SLA is a contract that includes consequences, such as a rebate or penalty, when the targets are missed. If there is no explicit consequence, the agreement is usually just an SLO.
How many SLIs should a service have?
Usually a small handful is enough. Choosing too many makes it hard to focus on what matters, while choosing too few can leave important behavior unmeasured.
What does five nines availability mean?
It means the service is usable 99.999% of the time. Each additional nine makes the target much stricter and harder to reach.
Sources
This page is based on the official documentation below. Read it for full detail.
Service level objectives — official documentation ↗