A staff engineer's field guide to observability: logs, metrics, traces and wide events, OpenTelemetry, Prometheus and PromQL, alerting and SLOs, log storage, Grafana, and what it all costs.
What Observability Actually Is — Observability is a property, not a product: logs, metrics and traces are three compressions of one reality, and each tool decides what to throw away. (7 min read)
Logs — The lossless record of one event, and so the most expensive signal. The engineering is in the shape of each line and in what you refuse to write. (15 min read)
Metrics — One number per time bucket per label set. Cost is set by distinct label combinations, not by traffic. (21 min read)
Traces — A trace keeps only the causal shape of one request: spans, parent links and timing, carried between services by the traceparent header. (13 min read)
Beyond the Three Pillars — Wide events, profiles, RUM and synthetics, and the join keys (exemplars, trace_id, resource attributes) that let you pivot between signals. (11 min read)
The Telemetry Pipeline — Seven steps from the line of code to the pager, push versus pull, and where the agent and gateway run. Data dropped at steps 1, 4 or 5 is gone for good. (11 min read)
OpenTelemetry: The Standard — What OpenTelemetry standardizes (APIs, SDKs, the OTLP wire format, semantic conventions) and what it deliberately leaves out: storage and dashboards. (14 min read)
The OTel Collector and Telemetry Pipelines — Where you enrich, drop, sample and route every signal, how agents and gateways divide the work, and why a Collector without memory_limiter gets OOM-killed. (16 min read)
Prometheus: Architecture and TSDB — Pull, keep about two hours in RAM, then write immutable two-hour blocks to one disk. The cost driver is the number of active series in the head block. (15 min read)
PromQL — Rate before sum, sum buckets before quantile, and why increase() returns non-integers on integer counters. (12 min read)
Alerting: Alertmanager, SLOs and Burn Rates — How Alertmanager routes, groups, inhibits and silences alerts, and how multi-window burn-rate alerts page on SLOs instead of thresholds. (14 min read)
Log Pipelines and Storage — Collecting logs from containers, then storing them three ways: index every word (Elasticsearch), index only labels (Loki), or store columns (ClickHouse). (15 min read)
Grafana and the LGTM Stack — Grafana stores nothing: every refresh is a query against your backends. How data sources, variables and $__rate_interval actually work. (10 min read)
Cost, Cardinality and the Vendor Landscape — You pay for what you keep. The multipliers are cardinality and low-value bytes, and both are decided at the source. (9 min read)