Lesson 8 of 9 · 26m
Incident Triage with Logs, Metrics, and Traces
Move from symptom to scope to cause using a disciplined telemetry workflow instead of random dashboard spelunking.
The worst incident behavior looks productive: ten people open ten dashboards, somebody says "CPU looks weird," and mitigation becomes a vibe. Good triage is deliberately boring. Establish impact, bound the blast radius, form a testable hypothesis, mitigate if safe, then investigate. Telemetry is there to answer the next question, not to provide infinite fascinating rectangles.
Start with impact and scope
Write these down in the incident channel:
impact: checkout failures affecting customers
started: approximately 18:12 UTC
scope: us-east only; web and mobile both affected
signal: 4.8% 5xx ratio, normal traffic volume
unknown: whether payment processor or internal database is primary causeScope questions are comparative. Is one region bad? One version? One route? One tenant class? One dependency? Comparison slices turn a mystery into a smaller mystery:
sum(rate(http_requests_total{service="checkout",status=~"5.."}[5m])) by (region, version)Use metrics to select, traces to locate, logs to explain
A practical division of labor:
metrics show that something changed and where the anomaly concentrates
traces show which dependency or span dominates one failing request
logs explain the exceptional decision or error with exact contextIf p95 latency doubled, metrics show the affected route. A trace may reveal that POST /checkout spends 900 ms in AuthorizePayment. A log event may then show processor_timeout with attempt counts and correlation IDs. Do not start by reading random logs; logs are too voluminous for undirected browsing.
Build a timeline before building a theory
Collect events in order:
18:09 deploy 1.18.4 begins
18:12 first elevated checkout 5xx ratio
18:14 payment processor latency rises
18:15 autoscaler adds two pods
18:19 rollback begins
18:23 error ratio returns below alert thresholdInclude deploys, migrations, feature flags, infrastructure events, dependency incidents, and alert actions. Correlation is not proof, but a timeline prevents the common mistake of debugging a symptom that started after mitigation.
Prefer safe mitigation over perfect diagnosis
If rollback, feature-flag disablement, traffic shifting, or dependency failover is reversible and reduces harm, do it while continuing to gather evidence. Diagnosing root cause while users suffer can be a false economy. Preserve evidence before destructive actions when practical: snapshots, log queries, trace exemplars, and current configuration.
Keep telemetry access ready before the incident
Responders need working access, saved queries, runbook links, and permission to production observability systems. The worst time to discover expired Grafana sessions or missing index permissions is while the error budget is burning.
Field notes
- Record exact queries used. "We checked logs" cannot be reviewed or repeated.
- Beware retry amplification: a dependency slowdown can increase client traffic and make the original cause look larger.
- Averaged metrics hide partial failure. Slice by region, version, route, and dependency before concluding impact is small.
- Traces are samples. Absence of evidence in a trace backend is not proof the behavior did not happen.
- Declare when mitigation is complete separately from when root cause is understood. They are different milestones.
Was this lesson helpful?