HELM
Ch 14 · Observability & SRE
Chapter 14 · See it before users do

Observability & SRE — the discipline of running prod calmly

Monitoring tells you what you predicted. Observability tells you what you didn't. A tech lead's job is to ship a system you can debug at 3 am with a phone.

14.1 · The three pillars (+ two add-ons)

PillarWhat it answers
Metrics"Is the system healthy?" — aggregated counters / gauges / histograms.
Logs"What happened?" — structured records of events.
Traces"Where did the time go?" — end-to-end request paths across services.
Profiles"Why is this CPU/heap hot?" — continuous profiling (Pyroscope, Parca).
Events / state changes"What changed?" — deploys, flag flips, config updates — overlay on graphs.

14.2 · OpenTelemetry — the standard, finally

  • Vendor-neutral SDKs + collector + OTLP protocol for metrics, logs, traces.
  • Auto-instrumentation for most languages and frameworks.
  • Send to any backend (Datadog, Honeycomb, Tempo, Jaeger, Grafana Cloud, New Relic).
  • Adopt OTel before picking a vendor — never the other way around.

14.3 · Metrics

TypeExample
Counterhttp_requests_total
Gaugequeue_depth
Histogramhttp_request_duration_seconds
SummaryLike histogram but client-side percentiles.

RED (Rate, Errors, Duration) per service. USE (Utilisation, Saturation, Errors) per resource. Together they cover 95% of dashboards.

14.4 · Logs

  • Always structured JSON with: trace_id, span_id, user_id, tenant_id, request_id.
  • Levels: debug / info / warn / error / fatal. error means "page someone".
  • Never log secrets / PII (Ch 15).
  • Centralise: Loki, Elasticsearch, Datadog Logs, Better Stack.

14.5 · Traces & spans

A trace is a tree of spans across services. Each span has an ID, parent ID, timing, attributes. With OTel context propagation, a single request shows up as one tree — the only sane way to debug distributed systems.

14.6 · Continuous profiling

Sample CPU / memory / lock contention in production continuously, attribute to functions. Pyroscope, Parca, Datadog Profiler. Catches the 1% slow path that benchmarks miss.

14.7 · SLI / SLO / SLA / error budgets

TermDefinition
SLIService Level Indicator — a measurable signal (e.g. success rate, p95 latency).
SLOService Level Objective — a target for an SLI over a window (e.g. 99.9% / 30d).
SLAService Level Agreement — customer-facing contract with consequences.
Error budget1 − SLO. The badness budget for the period.
Burn rateHow fast the budget is being consumed; alert on multi-window burn (fast + slow).

Rule: if you've burned through the budget, you stop shipping features and fix reliability. This is what gives engineering moral authority to slow down.

14.8 · Alerts that don't suck

  1. Alert on symptoms users feel, not on internals.
  2. Every alert has a runbook link.
  3. Use multi-window, multi-burn-rate alerts (Google SRE workbook).
  4. Page only what needs action now. Everything else is a ticket.
  5. Review alert noise weekly. Mute, merge, or fix.

14.9 · Incident response

  1. Detect — alert or user report.
  2. Triage — assign Incident Commander, Comms, Scribe.
  3. Mitigate — restore service. Rollback > debug.
  4. Communicate — status page updates every 30 min.
  5. Resolve — confirm metrics back to normal.
  6. Postmortem — blameless, 5-whys, action items with owners and dates.

14.10 · On-call hygiene

  • Rotation: 1 week primary + 1 week secondary; comp time for nights.
  • Hand-off: a doc with active incidents, watch items, recent changes.
  • "Follow the sun" if you have teams in multiple regions.
  • If on-call hates their week, the system is broken — fix it before people quit.

14.11 · The 2026 observability toolbox

ConcernPicks
Open-source stackPrometheus + Mimir + Loki + Tempo + Grafana + OTel Collector + Pyroscope
Managed all-in-oneDatadog, New Relic, Grafana Cloud, Sumologic, Splunk
Wide-events / next-genHoneycomb, Hyperdx
ErrorsSentry
RUM / front-endDatadog RUM, Sentry, Vercel Analytics
Synthetic checksCheckly, Datadog Synthetics, Better Stack
IncidentPagerDuty, Opsgenie, FireHydrant, incident.io, Rootly

14.12 · Self-check

Q1 · Best alert pattern for catching SLO violations early but not paging on every blip?
Single threshold on average latency
Multi-window, multi-burn-rate
Alert on raw error counts only
Cron-style daily summary