Observability and SREVol. 9 · Part IX
0 / 0

Shelves / Observability and SRE

Software Engineering · Volume 9

Observability and SRE

Part IX of the Software Engineering roadmap, written out as a textbook that starts from zero. The opening chapter assumes you have never looked inside a running system, and follows one slow order through logs, metrics and a trace to the database query that caused it; every later chapter opens with a plain-language Start here section whose experiments were actually run: an OpenTelemetry Collector hashing emails and masking card numbers, a Prometheus brought to its knees by one label, tail sampling that kept every error while storing 14% of traces, burn-rate alerts unit-tested with promtool, a game day with Alertmanager, retry storms and circuit breakers, and queueing curves measured against theory. The chapters go all the way down to propagation formats, histogram interpolation, coordinated omission and congestion collapse. Each chapter ends with a lab of real measurements and a revision sheet, and a final chapter of eight projects makes the tiffin centre observable and reliable.

11 chapters◷ ~3 h to read ✓ 273 topics? 11 quizzes

Two ways to read this book

New to the subjectStart with the opening Start Here chapter and read chapters in order. In each chapter, read the Start here section, run its examples, answer Check yourself before opening the answers, and take the quiz. Read the deeper sections once the Start here quiz is easy; leave the hardest parts for a second pass. Build the projects in the final chapter as you go.
Experienced engineerSkip the opening chapter. In each chapter, read the Revision sheet at the end first and take its quiz; skim Start here; then use How deep to go to pick the internals sections and lab experiments that fill your gaps. Tick a topic only when you could teach it.

Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments with real measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).

How to use this book

  1. Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
  2. Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
  3. Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
  4. Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.

Mastery levels

L1 RecognitionDefine it and identify it.
L2 WorkingUse it correctly in code or config.
L3 InternalsExplain why it works.
L4 DebuggingDiagnose failures and performance problems.
L5 DesignChoose among competing approaches.
L6 ProductionOperate it under scale, failure, security and cost.

Languages used throughout

OpenTelemetryPrometheus 3 · PromQLGrafana · Loki · Tempo · PyroscopeJaeger · OTLPSLOs · burn ratesk6 · Gatling · async-profiler · pprofJava · Go · Python · Rust · Node

Status as of October 2026: OpenTelemetry traces, metrics and logs are stable in the major SDKs; the profiles signal entered public alpha in March 2026; Collector 1.0 is still in progress. Examples use vendor-neutral tools (Prometheus, Grafana stack, Jaeger) so the ideas carry over to any commercial backend.

Contents

  1. SR·00Start Here: Seeing Inside a Running SystemFor readers who have debugged with print statements but never operated a service: why production needs observability, the three signals (logs…5 min
  2. SR·97The Signals of ObservabilityWhat observability means (and how it differs from monitoring), then each telemetry signal from first principles: logs, metrics and traces, plus…14 min
  3. SR·98OpenTelemetryOpenTelemetry end to end: why it exists, the API/SDK split, resources, the trace, metric and log data models, context propagation with W3C Trace…24 min
  4. SR·99LoggingLogging done well: structured logs and why plain text fails at scale, what to log and what not to, log levels and their contracts, correlation…20 min
  5. SR·100MetricsMetrics from first principles: the data model (name, labels, samples), counters, gauges, histograms and summaries (and OpenTelemetry's instruments)…19 min
  6. SR·101Distributed TracingDistributed tracing from first principles: traces and spans, parent/child relationships and span kinds, reading a waterfall to find critical paths…17 min
  7. SR·102SLIs, SLOs, SLAs and Error BudgetsService level management from first principles: SLIs as ratios of good to valid events, choosing indicators for request, pipeline and storage…17 min
  8. SR·103Incident ManagementHandling production incidents end to end: what makes alerts good (symptom-based, actionable, urgent, with runbooks), alert routing and on-call design…18 min
  9. SR·104Reliability EngineeringThe engineering patterns that keep services up, viewed as a system: redundancy and independence (N+1, cells, shuffle sharding), health checks that…20 min
  10. SR·105Production Performance EngineeringPerformance from first principles: latency, throughput, utilisation and saturation; queueing theory (the utilisation curve, M/M/1, why latency…20 min
  11. SR·106Observability and Reliability ProjectsEight build-it-yourself projects that make the tiffin centre observable and reliable: full OpenTelemetry instrumentation, a telemetry pipeline you…8 min