Observability — debugging production from the outside in
Monitoring tells you the things you already knew could go wrong. Observability lets you ask new questions of a running system without shipping new code. This chapter maps the 2026 telemetry stack — OpenTelemetry, metrics, logs, traces, profiles, RUM, and the SaaS giants — and shows where the cardinality and cost dragons live.
13.1 · Monitoring vs observability
Definition.Monitoring watches pre-declared signals against pre-declared thresholds — it answers known questions. Observability is a property of a system: how easily you can infer its internal state from its external outputs, including questions you did not anticipate.
Monitoring
Observability
Failure class
Known unknowns
Unknown unknowns
Primary artefact
Dashboards & alerts
High-cardinality events you can slice
Question shape
"Is X up?"
"Why is this specific user's checkout slow right now?"
SLIs (service-level indicators) belong to monitoring's vocabulary; SLOs (objectives) live in SRE (Ch 14). Observability is what lets you debug why an SLO burned.
13.2 · The pillars (and a heretic school)
Pillar
What it is
Best for
Metrics
Numeric time-series with low cardinality labels.
Trend dashboards, alerts, capacity.
Logs
Timestamped, mostly-textual events.
Forensics, audit, error context.
Traces
Causally-linked spans across services.
Latency hotspots in distributed systems.
Profiles
Sampled stack-traces (CPU, alloc, lock).
"Which function is burning CPU?"
Events
Discrete state changes (deploy, flag flip).
Annotations & change correlation.
Wide events. Honeycomb's Charity Majors argues the "three pillars" model is a tooling artefact; a single wide structured event (200+ fields per request) can replace metrics, logs, and traces if storage is columnar. Many 2025 vendors converged on this view.
13.3 · OpenTelemetry — the lingua franca
Definition.OpenTelemetry (OTel) is a CNCF project (merger of OpenCensus + OpenTracing, 2019) providing vendor-neutral SDKs, an agent (Collector), and a wire protocol (OTLP) for metrics, logs, traces, and now profiles. Tracing graduated in CNCF in 2024; metrics & logs are stable in most languages.
Auto-instrumentation — Java (javaagent), .NET, Python, Node, Go (eBPF) capture HTTP/DB/queue calls with zero code changes.
Collector — receive (OTLP, Prometheus, Fluent, Jaeger) → process (batch, filter, tail-sample) → export to any backend; replaces vendor agents.
Context propagation — W3C traceparent/tracestate headers carry the trace ID across services and queues.
13.4 · Metrics stack
Tool
Model
Notes (2026)
Prometheus (CNCF, graduated 2018)
Pull, TSDB, PromQL
De-facto open standard; remote-write OTel.
VictoriaMetrics
Single-binary, MetricsQL, cluster ed.
10–20× compression of Prom; popular for high-cardinality.
Grafana Mimir
Multi-tenant TSDB (forked Cortex)
Object-store backed (S3/GCS); horizontal scale.
Cortex / Thanos
Distributed Prom, long-term store
Thanos = sidecar+sidecar+compact; Cortex more SaaS-like.
13.5 · Logs stack
Tool
Role
Sweet spot
Loki (Grafana)
"Like Prometheus, for logs" — index labels only
K8s-native, cheap object storage.
OpenSearch / Elasticsearch / ELK
Full-text inverted index
Rich search, complex aggregations.
Splunk Enterprise / Cloud
Proprietary index + SPL
Heavyweight enterprise, security SIEM heritage.
Vector (Datadog OSS)
Rust pipeline agent
Replaces Logstash/Fluentd; VRL transform DSL.
Fluent Bit / Fluentd (CNCF)
Forwarders
Fluent Bit = C, embedded; Fluentd = Ruby, plugins.
13.6 · Traces stack
Tool
Lineage
Notes
Jaeger (CNCF, graduated 2019)
Uber, 2017
OTLP-native; storage: Cassandra, ES, OpenSearch.
Grafana Tempo
Grafana Labs, 2020
Object-store only, no index — cheap; TraceQL.
Zipkin
Twitter, 2012
The original; smaller mind-share now.
AWS X-Ray
AWS-managed
Tight IAM/Lambda integration.
GCP Cloud Trace
GCP-managed
Auto-traces from App Engine, Cloud Run.
Honeycomb
SaaS, wide-event model
BubbleUp anomaly diff; very fast slice/dice.
13.7 · Continuous profiling
Definition. Continuous profiling samples stack traces from production processes at low overhead (~1% CPU) so you can answer "which function is burning resources?" historically, not just under perf on a laptop.
Tool
Origin
Notes
Pyroscope (Grafana, 2023+)
OSS, merged with Phlare
Flame graphs, eBPF + SDK ingestion.
Parca (Polar Signals)
OSS, eBPF-first
FrostDB columnar store.
Polar Signals / Datadog Profiler
SaaS
Commercial; bundled with APM.
OTel Profiling signal
CNCF
Donated by Elastic 2024; OTLP profile messages stabilising.
13.8 · Front-end RUM & synthetic
Definition.RUM (Real User Monitoring) captures Core Web Vitals (LCP, INP, CLS) from actual browser sessions. Synthetic monitoring runs scripted user journeys on a schedule from chosen regions.
Tool
RUM
Synthetic
Sentry
Yes (Errors + Performance + Replay)
Cron monitors
Datadog
Yes
Yes (multistep, mobile, API)
Vercel Analytics / Speed Insights
Edge-native
—
Checkly
—
Playwright-as-code monitors
Better Stack (Uptime)
Limited
Heartbeats + screenshot diffs
GCP Cloud Monitoring
—
Synthetic monitors GA 2024
13.9 · SaaS observability platforms
Vendor
Strengths
Caveats
Datadog
Broadest single-pane; 25+ products.
Cost; per-host + per-GB ingest stacks.
New Relic
"Usage-based" pricing (per-GB + per-user).
UI density curve.
Dynatrace
OneAgent auto-discovery, Davis AI causal.
Enterprise-focused.
Grafana Cloud
OSS-stack (Loki/Mimir/Tempo/Pyroscope) as SaaS.
You assemble the experience.
Honeycomb
Wide-event tracing, BubbleUp diff analysis.
No metrics-native (events-first).
Splunk Observability Cloud
Strong metrics + APM (ex-SignalFx).
Two products (logs vs o11y) until convergence.
13.10 · LLM & AI observability
The 2024–25 wave: agentic apps need traces of prompts, tool calls, token usage, and eval scores.
Tool
Focus
Open?
OpenLLMetry (Traceloop)
OTel semconv for LLMs
OSS SDK
Langfuse
Traces + prompt mgmt + evals
OSS + Cloud
LangSmith (LangChain)
Traces tied to LangChain/LangGraph
SaaS
Arize Phoenix
Eval + drift + RAG analytics
OSS + SaaS
Helicone
Proxy-based logging + caching
OSS + SaaS
13.11 · RED · USE · Four Golden Signals
Method
What to measure
When
RED (Tom Wilkie)
Rate, Errors, Duration
Per request-driven service.
USE (Brendan Gregg)
Utilisation, Saturation, Errors
Per resource (CPU, disk, queue).
Four Golden Signals (Google SRE)
Latency, Traffic, Errors, Saturation
User-facing systems generally.
Pick by subject. RED for the service, USE for the box it runs on, Golden Signals for the user journey. They are complementary, not competing.
13.12 · Cardinality & cost
Definition.Cardinality is the number of unique label combinations a time series can take. A metric http_requests_total{route, status, user_id} with a million users explodes into a million series — and a million-dollar bill.
Never label with unbounded values — no user_id, no request_id, no raw url. Use traces/logs for that detail.
Pre-aggregate — recording rules in Prometheus, materialised views in ClickHouse, transform processors in OTel Collector.
Head vs tail sampling — head = decide at trace start (cheap, blind). Tail = collect all spans, decide after (smart, needs buffering).
Log tiering — DEBUG to local disk, INFO to warm tier (~7 days), WARN/ERROR to long-term (90 days+). Datadog "Log Indexes" charge by what you make searchable.
Egress traps — shipping logs cross-region/cross-cloud is often more expensive than storing them.
13.13 · Anti-patterns
"Log everything, alert on everything." Alert fatigue (Ch 15) and a six-figure observability bill in one move.
Multiple vendors per pillar. Datadog APM + New Relic metrics + Splunk logs = three context-switches during an incident.
Traces without context propagation. Without W3C headers crossing every hop, your "distributed trace" is a single-service span.
Unbounded labels. One user_email label has retired more than one observability budget.
Dashboards as truth. A green dashboard with broken alerting still means an outage you do not know about.
No SLOs. Without an objective, every spike looks scary and none of them matter (Ch 14).
The Three Pillars Lie. Storing metrics, logs, and traces as three separate systems triples your bill and makes correlation a copy-paste exercise. Modern stacks (Grafana LGTM, Datadog, Honeycomb) share IDs across signals so you can pivot in one click.
13.14 · Self-check
Q1 · Which CNCF project provides vendor-neutral SDKs, a Collector, and the OTLP wire protocol for metrics, logs, and traces?
Prometheus
OpenTelemetry
Fluent Bit
Jaeger
Q2 · You add a user_id label to http_requests_total and your Prometheus bill explodes. What did you violate?
RED method
Cardinality discipline
USE method
SLO budget policy
Q3 · Which method is designed for measuring a resource (CPU, disk, queue), not a request-driven service?