teluzia.Cloud Engineer · Day 131
CHAPTER 19 · OBSERVABILITY AND RELIABILITY ENGINEERING

SLIs, SLOs, runbooks and postmortems

4–5 hours including independent practice3 topics
LET’S MAKE THIS SIMPLE

What you’re learning today

SLIs and SLOs is today's starting point. For 995 successful eligible requests out of 1000, success SLI=99.5%. A 99.9% monthly SLO allows one bad request per thousand; the five failures consume five times that proportion in this small sample. You will connect this with runbooks and postmortems. The lesson's artifact brings these decisions together: Calculate success ratio for 995 successes among 1000 eligible requests, then write a runbook and five-event postmortem timeline.

Think of it this way

An SLI is a scored result, an SLO is the agreed standard, a runbook is the recovery procedure, and a postmortem is the practice review.

TOPIC 01 / 03Step by step

SLIs and SLOs

An SLI is a measured service behavior, such as successful eligible requests divided by all eligible requests. An SLO sets a target and evaluation window; define exclusions explicitly. For 995 successful eligible requests out of 1000, success SLI=99.5%. A 99.9% monthly SLO allows one bad request per thousand; the five failures consume five times that proportion in this small sample.

WORKED EXAMPLE
For 995 successful eligible requests out of 1000, success SLI=99.5%. A 99.9% monthly SLO allows one bad request per thousand; the five failures consume five times that proportion in this small sample.

An eligible event is a request included in the measurement; a good event meets the user-facing criterion; an error budget is the permitted amount of bad behavior over the SLO window. Suppose a service responds HTTP 200 while returning unusable data. Status-only availability counts it as good, so the SLI should reflect the actual contract where feasible. Decide how to handle client errors, maintenance and low-volume periods before calculating the ratio. For request-based objectives, budget consumption follows failed eligible requests, not necessarily elapsed minutes. A monthly target and a short incident alert answer different questions. Very strict objectives can demand costly redundancy and slow risky releases. Choose a target with stakeholder expectations and measured capability rather than treating a larger number as automatically better.

Why this matters

A 99.9% monthly SLO allows one bad request per thousand; the five failures consume five times that proportion in this small sample.

A common trap

An SLO is a metric name without a target or evaluation window.

MAKE IT VISIBLE

Explore an alarm decision

SAME DATA. DIFFERENT DECISION.

Will this CPU alarm fire?

Compare five synthetic one-minute samples with an M-of-5 alarm. Each sample represents one period here; real CloudWatch statistics may aggregate multiple observations within a period.

M-OF-5 ALARMALARM · 3 breaches
5-MINUTE AVERAGE65.4% · not above threshold
✦

The individual periods trigger this alarm even though the five-minute average stays below the threshold. Averaging can hide a burst. Missing-data policies, action routing, and recovery behavior still need configuration in a real alarm.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

SLIs and SLOs

An SLI is a measured service behavior, such as successful eligible requests divided by all eligible requests. An SLO sets a target and evaluation window; define exclusions explicitly. For 995 successful eligible requests out of 1000, success SLI=99.5%. A 99.9% monthly SLO allows one bad request per thousand; the five failures consume five times that proportion in this small sample.

WORKED EXAMPLE
For 995 successful eligible requests out of 1000, success SLI=99.5%. A 99.9% monthly SLO allows one bad request per thousand; the five failures consume five times that proportion in this small sample.

An eligible event is a request included in the measurement; a good event meets the user-facing criterion; an error budget is the permitted amount of bad behavior over the SLO window. Suppose a service responds HTTP 200 while returning unusable data. Status-only availability counts it as good, so the SLI should reflect the actual contract where feasible. Decide how to handle client errors, maintenance and low-volume periods before calculating the ratio. For request-based objectives, budget consumption follows failed eligible requests, not necessarily elapsed minutes. A monthly target and a short incident alert answer different questions. Very strict objectives can demand costly redundancy and slow risky releases. Choose a target with stakeholder expectations and measured capability rather than treating a larger number as automatically better.

Why this matters

A 99.9% monthly SLO allows one bad request per thousand; the five failures consume five times that proportion in this small sample.

A common trap

An SLO is a metric name without a target or evaluation window.

Runbooks

A runbook begins with symptoms and safe evidence collection, then decisions, mitigations, escalation and rollback. Specify expected output so an unfamiliar operator can distinguish success from noise. A 503 runbook checks load-balancer targets, deployment time and application logs before rollback. Its verification requires successful representative requests and stable error ratio, not merely a green deployment status.

WORKED EXAMPLE
A 503 runbook checks load-balancer targets, deployment time and application logs before rollback. Its verification requires successful representative requests and stable error ratio, not merely a green deployment status.

A diagnostic check gathers evidence; a mitigation restores service; a rollback reverses a relevant change. Imagine a responder sees elevated errors but the runbook immediately instructs deleting pods. Replace that instruction with a decision tree: identify scope, check recent releases, compare dependency health and choose the least disruptive supported action. Write expected output for each check so an unfamiliar operator can detect the wrong context. Include a stop condition for unsafe or ineffective steps and an escalation route for exhausted options. A command should name its environment and permissions rather than assuming production access. Detailed instructions help novices, while overly long procedures can slow urgent response; place the essential first checks and safe mitigation near the beginning with deeper references afterward.

Why this matters

Its verification requires successful representative requests and stable error ratio, not merely a green deployment status.

A common trap

A runbook should begin by restarting everything before collecting evidence.

Postmortems

A blameless postmortem records impact, timeline, contributing conditions and follow-up owners. Separate established facts from hypotheses; changing the system is more useful than naming a careless person. A timeline records release 14:00, errors 14:03, rollback 14:12 and recovery 14:15. An action such as testing the missing health path has an owner and due date; 'be careful' cannot be verified.

WORKED EXAMPLE
A timeline records release 14:00, errors 14:03, rollback 14:12 and recovery 14:15. An action such as testing the missing health path has an owner and due date; 'be careful' cannot be verified.

A contributing factor changes incident likelihood or impact; a root-cause claim is a proposed causal explanation; an action item is a measurable prevention or response improvement. Imagine a valid deploy passed CI but failed because a dependency permission was missing in the target environment. Record the missing integration check, configuration ownership and detection gap rather than reducing the story to a person's mistake. Cite logs and timestamps for established facts and label unverified explanations. Separate restoration actions from prevention work: rollback restored service, while a permission test may prevent recurrence. An action needs an owner and completion evidence. Exhaustively documenting every event can obscure the useful causal chain, so focus the narrative on decisions, impact and system conditions that another team can learn from.

Why this matters

An action such as testing the missing health path has an owner and due date; 'be careful' cannot be verified.

A common trap

A postmortem's main purpose is to identify the person to blame.

KEEP THESE WITH YOU

Today’s takeaways

SLIs and SLOs: An SLI is a measured service behavior, such as successful eligible requests divided by all eligible requests.

Runbooks: A runbook begins with symptoms and safe evidence collection, then decisions, mitigations, escalation and rollback.

Postmortems: A blameless postmortem records impact, timeline, contributing conditions and follow-up owners.

CLOSE THE LOOP

Ready to complete this day?

Verify the practical steps and pass the knowledge check (at least two thirds correct).

Lab steps verifiedKnowledge check passed