Set SLOs and alert on what users feel

DevOps, Hands On15 minutesLook onlySteps checked 14 November 2026By Cloud Hands On

In this task you'll describe reliability in numbers users care about.

An SLI is a measurement of what users feel, such as the share of checkout requests that succeed in under a second. An SLO is the target, such as 99.5% over 30 days. The gap to 100% is the error budget: how much failure you can afford.

Alert on burning the budget too fast, not on every CPU spike. When the budget's spent, slow releases and fix reliability.

Example. SS Kaiser's checkout SLO is 99.5% successful in 30 days. A bad release burned half the month's budget in an hour, which paged on-call; the rollback stopped the burn.

Before you start

You need: Nothing. Time: 15 minutes.

Where to look

  1. Application Insights
  2. Logs
  3. Alerts

Steps

  1. Pick one user journey and write its SLI as good events divided by all events.
  2. Set an SLO you can meet today, such as 99.5% over 30 days.
  3. Work out the budget: 0.5% of a month's requests.
  4. Create a log alert on the failure rate over the last hour, and remove alerts nobody acts on.

Commands

// Application Insights: failure rate in the last hour
requests
| where timestamp > ago(1h)
| summarize total = count(), failed = countif(success == false)
| extend failureRate = 100.0 * failed / total

Watch out for

Cost
Free to plan; alerts and logs cost a little.
Security
Monitoring data can include personal data: keep only what you need.
Common mistakes
SLOs of 100%, and paging on causes (CPU) instead of symptoms (failed checkouts).

Clean up

Nothing to clean up.

Words to know

SLI
Service level indicator: the measurement.
SLO
Service level objective: the target.
Error budget
100% minus the SLO: the failure you can spend.

Tick off each step and track your progress in the guide.

Open this task in DevOps, Hands On

Keep going