Observability and operations: logs, metrics, traces, SLOs and incidents
Notebook· 12.07· 3–4 h· Lesson 106 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Choose the right signal for a question: logs (what happened to this request?), metrics (how is the service doing overall?), traces (what did the agent do inside one run?).
- Correlate them with ids: a request id on every response and log line, and the same ids in each trace's metadata.
- Write structured JSON logs that carry ids, timings and costs, and never message text or credentials.
- Expose Prometheus metrics with low-cardinality labels, and read latency percentiles from histograms.
- Turn SLOs into alerts (multi-window burn rate) and check that one fires during an injected outage.
- Run an incident with a runbook: detect, mitigate, find the cause, write a blameless postmortem.
Before you start
Lessons 12.01 (SLOs), 12.04–12.06 (the service), 10.04 (tracing).
