What is an SLO (service level objective)?

A service level objective (SLO) is an internal reliability target for a service, measured by a service level indicator (SLI), for example 99.9% of checkout requests succeeding within 30 days. The shortfall it allows is the error budget.

Also called SLO, service level objective, SLI, service level indicator, error budgetUpdated

"The system should be reliable" can't be tested. "99.9% of checkout requests return successfully in under 800 ms, measured over a rolling 30 days" can. That sentence is a service level objective. It gives engineers and product owners a shared definition of "reliable enough", and a rule for when to pause features and fix reliability.

SLI, SLO, SLA and error budget

  • SLI (service level indicator): the measurement. Usually a ratio of good events to all events, such as successful requests divided by total requests, or requests faster than 800 ms divided by total.
  • SLO (service level objective): the target for that SLI over a window, such as 99.9% over 30 days. It is internal.
  • SLA (service level agreement): the promise in a contract, with a consequence such as service credits if it is missed. Set it looser than the SLO (for example an SLA of 99.5% against an SLO of 99.9%), so the team gets warning before the contract is breached.
  • Error budget: 100% minus the SLO. At 99.9%, you may fail 0.1% of requests in the window.

Google's SRE books popularised this vocabulary and the error budget policy that goes with it.

How error budgets work

The budget turns reliability into a decision rule. While budget remains, the team ships at normal speed and can take risks such as larger releases. When the budget is spent, the agreed policy applies: freeze risky releases, put engineers on reliability work and review the incidents that used it up. It also stops teams chasing 100%, which costs far more than users would notice.

Example: an SLO for a payments API

A request is good if it returns a non-5xx status in under 800 ms. The SLO is 99.9% over a rolling 30 days.

  • Traffic: a steady 100 requests a second, or 259.2 million requests in 30 days.
  • Error budget: 0.1% of 259.2 million = 259,200 bad requests.
  • Time equivalent: 0.1% of 30 days = 43.2 minutes of full outage.

A bad deploy fails half of all requests for 30 minutes. That is 90,000 bad requests, about 35% of the month's budget in one incident. Two more like it would use up the budget and trigger the release freeze. The post-incident review asks why the canary release didn't catch it.

The uptime and SLA calculator converts any target into allowed downtime per day, month and year. It uses an average month of about 30.44 days, so it shows 43 min 50 s for 99.9% rather than 43.2 minutes.

Alerting on SLOs

Page people when the budget is burning too fast, not on CPU graphs. The burn rate is how fast you consume budget relative to plan: a burn rate of 1 uses exactly the whole budget in the window. The Google SRE Workbook suggests, as a starting point for a 99.9% SLO, paging when 2% of a 30-day budget is spent in one hour (a burn rate of 14.4) or 5% in six hours (6), and opening a ticket at 10% in three days (1). This needs good observability data behind it.

Common mistakes

  • Measuring what is easy (server uptime) instead of what users feel (successful checkouts, page load).
  • An SLA equal to the SLO, leaving no safety margin.
  • An error budget with no agreed policy, so nothing changes when it runs out.

We help teams define SLOs and reporting for their services, and for outsourced work see KPIs and SLAs for outsourced development.

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call