Track
Observability & OpenTelemetry lessons
43 short lessons on Observability & OpenTelemetry. Each one starts from a real situation, shows how it works, and ends with a quiz. Free to read.
All 43 lessons
- Metrics, logs and traces: three questionsBeginner · 5 min
Metrics tell you how bad it is, logs tell you what happened, traces tell you where. Three questions, one incident, and which tool answers which.
- Prometheus and Grafana: scrape, query, dashboardIntermediate · 5 min
A service exposes metrics that nobody can see. In four steps: scrape them every 15 seconds, check the target is up, query the golden signals, and draw them in Grafana.
- Alerting: alert on symptoms, not causesIntermediate · 5 min
Forty-one pages a week, thirty-one of them for CPU that fixed itself. Alert on what users feel, and let causes live on dashboards.
- CountersBeginner · 5 min
A 'traffic dropped to zero' alert fires after every deploy and clears by itself. The traffic never dropped: the graph is of a counter, and counters start over.
- GaugesBeginner · 5 min
A disk alert fires at 100% full, two minutes after the database stopped writing. A gauge held the whole story: the disk had been filling at 3 GB an hour for days.
- Histograms and latency percentilesBeginner · 5 min
A dashboard says p99 is 295 ms against a 300 ms SLO, and a release is stopped. The real p99 was about 220 ms. Percentiles from histograms are estimates, and the bucket…
- Labels and cardinalityBeginner · 5 min
One extra label took Prometheus from 3 GB to 11 GB in an hour. Every label value multiplies the number of series, and some labels have no upper limit.
- rateBeginner · 4 min
rate estimates per-second counter change over a window.
- sum byBeginner · 4 min
sum by aggregates series while keeping selected dimensions.
- histogram_quantileBeginner · 4 min
histogram_quantile estimates quantiles from classic histogram buckets.
- Vector matchingBeginner · 4 min
Vector matching pairs series by labels for binary operations.
- Scrape intervalBeginner · 4 min
Scrape interval determines metric collection cadence.
- Service discoveryBeginner · 4 min
Service discovery finds targets dynamically.
- Target downBeginner · 4 min
Target down indicates failed Prometheus scraping.
- Recording ruleBeginner · 4 min
Recording rule precomputes expressions as new time series.
- Alertmanager groupingBeginner · 4 min
Alertmanager grouping batches related notifications.
- Alertmanager inhibitionBeginner · 4 min
Alertmanager inhibition suppresses alerts when another alert is firing.
- for durationBeginner · 4 min
for duration requires an alert condition to persist.
- Metrics versus logs versus tracesBeginner · 4 min
Metrics, logs and traces answer complementary questions when investigating a service.
- RED metricsIntermediate · 4 min
RED measures rate, errors and duration for each request-driven service and route, and duration works best as a histogram because averages hide the slow requests users…
- USE metricsIntermediate · 4 min
The USE method checks utilization, saturation and errors for each resource on a host, and saturation shows the waiting that a moderate utilization figure can hide.
- Prometheus scrape modelIntermediate · 4 min
Prometheus pulls metrics from each target on a scrape interval and records a failed scrape as up equal to 0, so gaps in a graph often come from scrape timeouts rather…
- PromQL rateIntermediate · 4 min
rate() turns a counter into a per-second increase over a window and corrects for counter resets, so the window should be longer than two scrape intervals and never…
- PromQL histogram quantileIntermediate · 4 min
histogram_quantile estimates a percentile from cumulative buckets, using the le label as each bound, so the estimate is only as precise as the bucket layout around the…
- Label cardinalityIntermediate · 4 min
Each distinct combination of label values is a separate time series, so cardinality is the product of the label value counts, and unbounded labels make storage and…
- Recording rulesIntermediate · 4 min
A recording rule runs an expensive query on a fixed schedule and stores the result as a new time series. Dashboards and alerts then read that stored result quickly and…
- Alertmanager routingIntermediate · 4 min
Alertmanager routes each alert through a tree of matchers, so the order of routes and the continue flag decide who gets paged. Testing label sets before a change…
- Grafana dashboardsAdvanced · 4 min
A Grafana dashboard reads data through panels, variables and time ranges, and each of those can change what a panel shows. Checking them first saves time during an…
- OpenTelemetry SDKAdvanced · 4 min
The OpenTelemetry API is safe to call without an SDK, but without SDK setup nothing is exported. The SDK turns the calls into real telemetry, and it must be registered…
- Trace context propagationAdvanced · 4 min
A trace stays whole across services only when each hop passes the traceparent header along. The W3C format gives the header four fields, and a dropped header starts a…
- OTLP collectorsAdvanced · 4 min
The OpenTelemetry Collector receives, processes and exports telemetry between services and backends. It gives one place to change routing, filters and keys without…
- Tail samplingAdvanced · 4 min
Tail sampling decides after a trace is complete, so it can keep errors and slow traces. The price is memory, and every span of one trace must reach the same sampler.
- Span attributesAdvanced · 4 min
Span attributes describe each operation and are stored and sent to every backend. Keep their values from a fixed set, and keep personal data out, to protect privacy and…
- ExemplarsAdvanced · 4 min
An exemplar links one sampled event, usually a trace ID, to an aggregated metric point. It turns a histogram spike into one trace to inspect, without storing every event.
- Distributed trace waterfallAdvanced · 4 min
A trace waterfall lays a request's spans on one timeline, so you can see which calls ran in sequence and where the time went. Per-service averages cannot show that order.
- Loki log queriesAdvanced · 4 min
Loki queries start with a label selector that chooses streams, then filter the text in those streams. A narrow selector and a short time window keep queries fast and…
- Log enrichmentAdvanced · 4 min
Log enrichment adds context such as trace IDs and service names to each line when it is written. Only the application knows some of that context, and high-variety…
- SLI designAdvanced · 4 min
An SLI measures what users experience, such as the share of good requests, and an SLO sets a target for it. Measuring at the edge and by route catches failures that…
- Multiwindow burn ratesAdvanced · 4 min
A burn rate shows how fast an error budget is being used, and a multiwindow alert pairs a long window with a short one. That fires early on real trouble and clears soon…
- Alert fatigueAdvanced · 4 min
Alert fatigue sets in when pages arrive so often that people stop reading them. Page on symptoms users feel, move cause-level alerts to dashboards or tickets, and…
- Telemetry cost controlsAdvanced · 4 min
Telemetry cost grows with the number of distinct series, not only with traffic. Limits in code, the collector and the backend each control cost, and the earliest…
- Synthetic monitoringAdvanced · 4 min
Synthetic monitoring runs scheduled checks from outside the system, so it sees what a customer sees. It catches blocks and routing faults that internal metrics never…
- Debugging missing dataAdvanced · 4 min
Gaps in a Prometheus chart have several causes: a failed scrape, a stale series, the lookback window or a short range. Check the up metric and the samples before…