What it is
Metrics summarize behavior, logs describe individual events, and traces follow work across components. An SLI measures a chosen aspect of service behavior; an SLO sets a target. Recovery planning covers how to restore service and confirm useful work is possible again.
Why you need it
An alert should lead to a decision. Measuring only machine health can miss failed user requests, and possessing a backup does not prove the data can be restored.
How it works
- Define a useful successful event and its eligible population.
- Measure failures and latency over a stated window.
- Alert on actionable degradation with ownership and context.
- Mitigate, verify recovery, and review the cause and prevention work.
A request-based availability calculation
Eligible checkout attempts: 10,000
Successful attempts: 9,990
Availability: 9,990 / 10,000 = 99.9%
Also inspect latency and failed-attempt reasons.
Define how timeouts are included in the denominator.This example measures requests, not minutes of uptime. A definition that excludes failed attempts before application logging can overstate availability.
Practice ls -la, chmod, grep | wc, df -h, df -i, du, lsof, and ss -tulnp against five live troubleshooting missions.
Good practices and why
- Use user-visible outcomes and enough diagnostic context to act on an alert.
- Exercise restores and define recovery objectives with the people affected by data loss or downtime.
Common mistakes
- Paging for every noisy metric without a useful response.
- Declaring recovery solely because alerts stopped.
Try it yourself
Write an alert description for failed checkout and a recovery checklist for its database. Include an owner, verification query, and user-journey test.
What a successful result looks like
The alert explains impact and action, and the restore checklist verifies data correctness as well as process startup.
0 / 6000 characters · Saved on this device. Do not include passwords or private data.
Check your understanding
Answer the understanding check correctly to record exercise completion.
Related interview practice
- The backup exists. Can you restore it? ↗
- Availability is high. Users still see failures. ↗
- Three teams are debugging. Nobody is coordinating. ↗
These scenarios add constraints and follow-up questions to the concepts you just learned.
Further reading
Selected primary references · reviewed 2026-10-09. Examples are educational; use your framework’s documented integration guidance when building a deployed system.