Lesson 1 of 9 · 24m
SLOs That Drive Decisions Instead of Decorating Dashboards
Build service-level objectives around user journeys, valid events, and explicit consequences rather than vanity uptime percentages.
The worst SLO I ever inherited said the platform had to be "99.9% up." Nobody could say what "up" meant. The load balancer was green during a checkout outage, the status page looked calm, and the support inbox was on fire. The target existed to make leadership feel safe, not to help engineers decide what to do next. An SLO is only useful when it changes a decision.
Reliability is a user-journey property
Start with the journey, not the component. "Checkout completes" is meaningful to a user; "the checkout-api container is running" is not. A practical SLI is usually a ratio:
SLI = good events / valid eventsFor an HTTP API, a first pass might be:
good = requests that complete successfully within the promised time
valid = requests that reached the service boundary and were not client errorsThat definition forces hard conversations. Is a 500 bad? Yes. Is a 404 bad? Usually no, because the caller asked for something absent. Is a response after ten seconds good? Probably not if the user abandoned the session after two.
Write the target as a complete sentence
A weak objective says 99.9% availability. A stronger one says:
Over a rolling 28-day window, 99.9% of valid checkout API requests
will return a successful response within 800 ms, measured at the edge
service closest to the customer.Notice the ingredients: window, proportion, event definition, latency threshold, measurement point. Omit any one and smart people will argue past each other during an incident.
Prometheus makes the shape explicit
If the edge emits request metrics, the ratio can be expressed directly:
sum(rate(http_request_duration_seconds_bucket{service="checkout",code=~"2..|3..",le="0.8"}[5m]))
/
sum(rate(http_request_duration_seconds_count{service="checkout",code!~"4.."}[5m]))Real systems need more care: retries can inflate totals, health checks can poison the denominator, and one noisy batch client can dominate user traffic. Label traffic by route, class of client, and whether the request was synthetic before you declare the number sacred.
Choose targets from experience and economics
The correct SLO is not the biggest number you can print. If the user journey depends on authentication, inventory, payment, and fulfillment, multiplying component reliabilities quickly erodes the end-to-end result. A service promising 99.99% behind three 99.9% dependencies is lying to itself.
Targets also carry cost. Moving from 99.9% to 99.99% can mean multi-region design, careful dependency isolation, slower release mechanics, and more operational maturity. If the product would not pay that cost for the user benefit, do not pretend the target exists.
An SLO needs an agreed consequence
The final test is simple: what happens when the target is missed or the budget is nearly gone? If the answer is "we look sad in a meeting," you have a dashboard ornament. The answer might be pausing risky feature rollout, funding reliability work first, or accepting the miss because a planned migration justified it. Any of those can be rational. Silence cannot.
Field notes
- Never average availability across unlike endpoints; a cheap health endpoint can hide pain in an expensive write path.
- Exclude client-caused 4xx responses deliberately, not accidentally. Some 4xx traffic still indicates broken clients you own.
- Rolling windows avoid the monthly reset theater where everyone becomes reckless on the first day of a new month.
- Record the measurement point. Edge, service mesh, application code, and browser telemetry tell different truths.
Was this lesson helpful?