Service indicators, objectives and alerting
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Before any authorized optional observation, verify the effective daemon endpoint including overrides, exact object ID and observation window. Bound collection time and output bytes; do not generate resource pressure or export private telemetry. Mark unavailable measurements NOT RUN.
Fictional 5-minute windows (total eligible requests, failures):A: 1000, 5 -> 99.5% successB: 1000, 20 -> 98% successC: 0, 0 -> undefined, no trafficExample teaching policy: error fraction > 1%, at least 100 requests,condition continuously true for 5 minutes; missing data handled separately.Example 30-day SLO: 99.9% of eligible requests successful.For a request-based success SLI divide successful eligible requests by all eligible requests; define exclusions and the time window before collecting data. A 99.9% target over 100,000 eligible requests allows 100 failures, not 0.1% of containers. Do not equate the example five-minute alert with the 30-day SLO: short windows provide timely signals but can be noisy. Prometheus evaluates alert conditions on scheduled evaluations; for requires a condition to remain active over a duration before firing. Route notifications through an approved alert manager with ownership, grouping and a runbook. No traffic is not 100% success, and absent telemetry is not normal service. Track data coverage and consider independent availability probes for low traffic. This chapter uses a simplified alert decision model, not an actual Prometheus rule evaluation. A is below the error threshold, B meets the instantaneous volume and error criteria, and C is undefined. The provided model requires a qualifying sample at least every 60 seconds; a gap greater than 60 seconds or missing sample resets pending continuity. That gap policy is specific to this teaching model, not a universal Prometheus rule. The 50,000-request example allows 50 failures.
Common mistake
One sample above threshold does not demonstrate a continuous five-minute breach. Avoid paging for a percentage without considering sample volume and missing data.
Manual practice
Calculate the allowed failures for a 99.9% target across 50,000 requests. Classify A, B and C; state which extra evidence is necessary to fire the teaching alert.
Worksheet: lab-fixtures/docker-observability/07-alerting/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Service indicators, objectives and alerting — Knowledge check
Interpret synthetic observability evidence and choose safe diagnostic actions.
How many failures fit a 99.9% success target across 50,000 requests?
What is the success fraction for C?
Does a single qualifying B window alone establish that the teaching alert has been continuously active for five minutes?