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.
Two ways to read this book
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
- 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.
- Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
- 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.
- Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.
Mastery levels
Languages used throughout
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
- 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
- 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
- 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
- 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
- SR·100MetricsMetrics from first principles: the data model (name, labels, samples), counters, gauges, histograms and summaries (and OpenTelemetry's instruments)…19 min
- 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
- 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
- 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
- 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
- SR·105Production Performance EngineeringPerformance from first principles: latency, throughput, utilisation and saturation; queueing theory (the utilisation curve, M/M/1, why latency…20 min
- 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