Platform engineering and SRE

Stage 2 · Lesson 2 of 6

The Prometheus data model

Observability: metrics, logs and traces

stores : a metric name, a set of labels and timestamped values. It (fetches) metrics over HTTP from each target on an interval. There are three you use daily.

A counter only goes up, such as requests served; you almost always wrap it in rate(). A gauge goes up and down, such as queue length. A histogram counts observations into buckets, such as request durations, so can be computed later across many pods.

Labels such as service, route and status code let you slice the data. You met Prometheus in the DevOps roadmap; here the goal is to know why each type exists.

Common trapusing a summary for latency and then averaging its percentiles across pods, which gives a number that means nothing.

A question to check yourself, an AI practice session and 1 cheat sheet entry come with the full roadmap. Unlock

Resources for this stage

Start with· follow one of these

Practise

Keep handy

Also worth your time

Mark this stage as not done?