Measure user experience with one number An SLI (Service Level Indicator) is a measurement of user experience. For an order service, it is "the ratio of successful requests" or "the ratio of requests finished within 0.5 seconds".
The service exports request and error counts as metrics, and the metrics store collects them and computes the ratio.
Set a target and you get the amount of failure allowed An SLO (Service Level Objective) is the target and period the SLI must meet. For example, "99.9% success over 30 days".
The error budget is the amount of failure the target allows. 30 days × 0.1% equals about 43 minutes of total outage.
Key idea With budget left, ship new features boldly; once it is spent, focus on stability. It becomes the yardstick between speed and stability.
A CPU alert fires regardless of users Cause-based alerts like "CPU over 80%" or "Pod restarted once" fire even when users are unaffected. Fire dozens of times a day, and on-call starts ignoring them.
This state, where alerts fire so often that people ignore them, is called alert fatigue. The biggest risk is a real alert getting buried in the noise.
Alerts that wake people up are based on symptoms Symptom-based alerts fire only for problems users actually feel, like "error rate rising fast enough to threaten the SLO" or "p99 latency over 2 seconds for 10 minutes".
Cause metrics like CPU are not thrown away. They move out of alerting into dashboards and analysis.
What changed in this step
− alert: CPU over 80%+ dashboard: CPU usage+ alert: error budget burn rateWatch how fast the budget is burning The burn rate is how fast you spend the error budget. At 1, you use up the budget exactly at the end of the period. At 14.4, you burn a 30-day budget in about two days.
Alert on this rate, not on the error rate itself. Brief errors pass; you are alerted only when the rate threatens the budget.
Fire only when a long and a short window both cross The urgent alert fires when both the 1-hour and 5-minute windows have a burn rate of 14.4 or more. The warning fires when both the 6-hour and 30-minute windows are at 6 or more.
With only a long window, the alert lingers after the outage ends. With only a short window, it fires on brief blips. Together they detect fast with fewer false alarms.
Key idea The long window confirms "it is burning hard now"; the short window confirms "it is still burning right now".
What changed in this step
+ urgent: 1h and 5m windows both ≥ 14.4 → page now+ warning: 6h and 30m windows both ≥ 6 → check in work hoursErrors spike and one urgent alert goes out Order errors spike and both windows exceed a burn rate of 14.4. Even if 20 Pods hit the same error, Alertmanager groups them into one notification to on-call.
By severity, urgent goes to the on-call pager and warnings go to the team chat channel. Sending to mail or chat is covered in the external alerting lesson.
From metrics to traces, from traces to logs On-call picks a spike on the error rate graph. If a point carries the trace ID of a representative request (an exemplar), they jump straight to that request's path.
In the trace, they find the slow or failed span, then confirm the cause in logs with the same trace_id. With this chain in place, a few clicks reach the cause.
Alert on symptoms, analyze causes SLOs turned the target and error budget into numbers, and two conditions, long and short windows on the burn rate, woke people only for problems users actually felt.
Cause metrics stayed on dashboards, and when an alert fired, we narrowed the cause through metrics → traces → logs.
Summary Put alerts that wake people on user-facing symptoms (error budget burn rate), and keep cause metrics like CPU on dashboards. When an alert fires, narrow down via metrics → traces → logs.