SLIs, SLOs and alert design
Define an objective users care about
An SLI is a measured indicator such as successful eligible checkout requests divided by all eligible requests. An SLO is the target over a stated window, for example 99.9% successful requests over 30 days. An SLA is a separate agreement with defined terms and consequences. Define eligibility, measurement boundary and treatment of missing data in advance; zero requests means the ratio is undefined, not 100% success. Count a latency objective separately (for example 99% under 300 ms). Do not combine unrelated denominators.
Calculate error budget and burn
For a request-based 99.9% SLO, the allowed failure fraction is 0.001. If 1,000,000 eligible requests arrive during the objective window, the allowed failures are 1,000. With 250 failures, 750 remain at that observed request count; the final budget changes with volume. An observed 2% error fraction burns 20 times the permitted rate (0.02/0.001). This is a rate ratio, not a prediction of incident duration. Use short and long windows together to distinguish sustained rapid burn from transient noise. Define policies for low traffic and missing telemetry separately.
Design an actionable alarm
A metric alarm evaluates a statistic over configured periods and a threshold; choose evaluation periods and datapoints-to-alarm for the signal. Missing data can mean collector failure or expected idle time; select its treatment deliberately. Composite alarms combine states with Boolean rules. A simplified page policy uses ALARM(LongBurn) AND ALARM(ShortBurn), with a separate telemetry-gap alert; it is not a universal threshold. CloudWatch can send alarm state changes to EventBridge, where a scoped rule routes notifications; downstream handling should tolerate repeated delivery. Application Signals supports SLO and burn-rate alarms. Attach an owner, dashboard, runbook, severity and recovery criterion; do not trigger destructive remediation from a single alert.
Offline incident exercise
The JSON fixture below is fictional: two windows contain 1,000 and 10 eligible requests with 20 and 0 failures. Aggregate error fraction is 20/1010, not the mean of 2% and 0%. The lab uses a 99.9% objective and a demonstration threshold of 5 for both windows; the zero-error short window does not justify paging under that policy. Investigate t-b using related logs, compare timing with the last release and verify recovery using fresh request counters. A missing window must return UNKNOWN rather than a healthy state. No telemetry or AWS measurements are collected.
{ "windows": [ { "requests": 1000, "failures": 20 }, { "requests": 10, "failures": 0 } ], "allowedFailureFraction": 0.001, "burnThreshold": 5, "durationsMs": [ 10, 10, 10, 10, 200 ], "logs": [ { "traceId": "t-a", "service": "checkout", "status": 200 }, { "traceId": "t-b", "service": "checkout", "status": 500 }, { "traceId": "t-b", "service": "payment", "status": 503 } ]}Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
SLIs, SLOs and alert design — knowledge check
Reason about telemetry, distributed tracing and reliability objectives.
What is the allowed failure count at 99.9% for 1,000,000 eligible requests?
What is the burn rate for 2% errors with 0.1% allowed?
What is the success ratio when eligible request count is zero?
What does the example AND composite require?
What should an incident page include?