PromQL level 2: histograms, topk and operations between vectors

16 min
Audience
beginner, lesson 04 mastered
Duration
50 to 60 min
Module
2/7
Target skill
compute a p95 latency with histogram_quantile, rank with topk/bottomk, divide two vectors without getting the labels wrong (on, ignoring, group_left), detect an absence, look into the past (offset, @), and read the kit's api:* recording rules

In one picture

At level 1 you counted requests. At level 2 you answer the questions a service owner asks: "how long do the slowest 5% of requests take?", "what are the three most requested routes?", "what is the error rate per route?", "was it better ten minutes ago?", "has the API disappeared?". Each question has a PromQL tool, and each tool has a label rule which, if you ignore it, produces an empty or wrong result without warning.

Preview — the rest of the lesson is for enrolled readers.

Already enrolled with a code?

Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.

Sign inNo account yet? Create one
This lesson is part of the “Metrics: Prometheus end-to-end” module

The first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.

Are you a student on this course?

The code is tied to your account: sign in or create an account and it will be applied automatically when you come back.

No account yet? Create one