Self-test
Check your understanding of series, labels, and metric types
Self-test8 questions
What exactly identifies a time series? Is
http_requests_total{status="200"}one series?Estimate the series count for a histogram with 8 buckets, labelled by
route(12 values) andmethod(3 values), on 20 instances.Why does memory scale with series but disk scales with samples?
A developer exposes
requests_last_minuteas a gauge. Give two concrete ways this goes wrong compared with a counter.Why can't you average p99s from a summary across instances? What can you still aggregate from a summary?
Your SLO is "99% of requests under 300 ms." Which bucket boundary must exist, and which query is then exact rather than estimated?
What is a stale marker, and what would you see on a graph without one?
- Design question
You're asked to add a
customer_idlabel to the request counter "so support can see per-customer errors." Explain what happens, and propose what to do instead.