Skip to content
StackDecode
System Design
17. Observability and MonitoringAnimated

Metrics Collection

Numbers measured over time.

The idea

Counters, gauges and histograms are scraped or pushed to a time-series store.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

AppsCollectorMetrics (Promet…Logs (Loki)Traces (Tempo)Dashboards
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Apps emit metrics, logs and traces.

step:
1/4
at:
Apps
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Instrument code
  2. 2Expose metrics
  3. 3A collector scrapes them
  4. 4Store as time series

Where it is used

Dashboards and alerts.

Watch out for

High-cardinality labels explode storage.

Related