StoicBuilder

HandbookXII the SpeculaSLIs and SLOs

XIIthe Specula, Watch production

SLIs and SLOs

1 min readUpdated 28 November

In plain words

An SLI, a service level indicator, measures what users experience, such as the share of checkouts that finish within two seconds; an SLO, the objective, is the target, such as 99.9 percent over 28 days.

Where you see it

Harbor's team argues every week about whether the API is "slow". Writing down "99.5 percent of dashboard loads return in under 800 ms, measured at the load balancer, over 28 days" ends the argument: you are inside the target or you are not.

docs/slos/checkout.mdconfig
service: checkoutSLI: share of POST /api/checkout requests that return non-5xx in under 2 smeasured: at the load balancerSLO: 99.9% over a rolling 28 daysallows: 0.1% of requests, or about 40 minutes of total outage
One user flow, one way to measure it, one target, and what the target allows.

What goes wrong

  1. Aiming for 100 percent

    Each extra nine costs far more than the last, and users can't tell 99.99 from 100 through their own wifi. A perfect target also leaves no room to ship changes.

  2. Measuring what's convenient instead of what users feel

    CPU under 70 percent is not an SLI; no customer notices CPU. Measure close to the user, such as at the load balancer, for the requests that matter: sign-in, deploy, checkout.

  3. So many SLOs that none matter

    Twenty objectives per service means nobody knows which ones to defend. Start with two or three for the flows that earn Harbor money or lose it customers.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Propose SLIs and SLOs for our three most important user flows: sign-in, deploying a project and checkout. For each, give the exact definition of a good event and of all events, where we measure them, a target over 28 days, and the number of failures that target allows.

Quick check

Sign in to earn +10 XP for it

Which of these is a useful SLI for Harbor's checkout?

Got a prompt that touches SLIs and SLOs?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.