Chapters & contents Lesson 1 of 12
3 min read
DevOps and observabilityExpanded reading

Measure reliability from a learner’s request

Turn a vague promise of uptime into a measurable service objective.

What you’ll learn

  • Write an SLI with a clear numerator and denominator
  • Calculate an error budget from a simple request count
  • Connect metrics, logs, and traces to a debugging question

Begin with an observable promise

A learning site can respond to a health check while its course search is unusable. Define reliability from an important user action instead: opening a published lesson, saving progress, or receiving search results. Write down what counts as an eligible attempt and what counts as success. A request rejected because a learner supplied an invalid lesson identifier may need different treatment from a valid lesson request that fails. The measurement must make that distinction explicit so the team can interpret its result.

Calculate a small objective

For a practice exercise, define a successful lesson read as an eligible request that returns the intended lesson without a server error. Choose an illustrative objective of 99 percent success over a fixed window. If there are 1,000 eligible requests, at least 990 must succeed, allowing 10 unsuccessful requests under that definition. If 7 fail, 3 remain in the simple count-based error budget. These numbers are a teaching example, not an automatic target for every product or a substitute for a written measurement window.

Ask different questions of each signal

A metric can show that unsuccessful reads increased after a release. A structured log can record which lesson identifier failed and the application error category. A trace can connect the request to a slow database operation or another dependency. None alone guarantees an explanation. Keep a request identifier across boundaries so related evidence can be correlated, and avoid storing access tokens or private learner text merely to make debugging convenient. Collect evidence that answers a concrete operational question.

Make an alert actionable

An alert should tell someone what user outcome is threatened and what action can help. A single harmless CPU spike may not require waking a maintainer, while a rapid consumption of the agreed error budget may. Separate an urgent notification from a dashboard used for investigation. Include a short runbook with checks, safe rollback steps, and escalation ownership. A threshold without an owner and a possible response produces noise, which makes the next meaningful alert easier to ignore.

Use a release as a controlled experiment

Before releasing a new search index, record the existing success rate and response-time distribution. Release to a limited audience when the deployment system supports it, compare equivalent traffic, and watch the user-facing indicators. If failures rise, preserve enough evidence to investigate and restore a known working state. Afterwards, improve the system or procedure instead of assigning blame. Operational learning is useful when it changes the next release, not when a chart is merely added to a status report.

Try it yourself

An objective permits at most 0.5 percent unsuccessful requests. In a window with 20,000 eligible requests, 60 fail. Calculate the allowed failures, remaining budget, and one reason the result might hide a poor experience.

Show a possible solution

Allowed failures are 100, leaving 40. The aggregate can hide a particular course, region, or user group experiencing most failures, or successful responses being extremely slow. Inspect appropriate breakdowns and a separate latency indicator.

Check your understanding

Try 11 questions across devops and observability. Read each explanation and revisit anything that needs another pass.

Practise this subject

Go to the source

Use these primary references to check details and explore the topic further.

Saved in this browser. Signed-in progress syncs to your account.