All jobs / DevOps / SRE / cloud / Observability

DevOps / SRE / cloud interview question · 3–5 years

After a deploy, the Grafana dashboards time out and Prometheus runs out of memory. A developer added `user_id` as a label on the request counter.

What happened, and what is the rule?

The strongest answer

Every distinct label value is its own time series, so a user id made one series per user; labels are for bounded dimensions — route, status, region — and ids belong in logs and traces, linked by exemplars

Why it works

Right — cardinality is the cost model of a time-series database. Bounded labels, unbounded ids elsewhere.

What a good answer covers

Answers that fall short

Who gets asked this

More Observability questions