Pidoku
2Metrics

Metrics

Module 25 lessons~4h 5m

Lessons, in order

About this module

Metrics are the cheapest signal and the one every alert is built on. This module builds a metrics library by hand, then uses the real one, then learns to query it without being fooled.

#LessonThe question it answers
2.aMetric Types and the Data ModelWhat is a time series, and what are counters, gauges and histograms?
2.bInstrumenting a Go ServiceWhat do I measure in a service, and how is it exposed?
2.cPromQL EssentialsHow do I turn raw counters into rates, ratios and percentiles?
2.dHistogramsHow are percentiles estimated, and how wrong can they be?
2.eCardinalityWhy did the metrics bill explode, and how do I stop it?

When you finish you can instrument a service with the RED metrics, expose them, query error ratios and p99 latency in PromQL, and predict how many time series your labels will create.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in