We're Missing a Dimension, So Add user_id as a Label?
Debugging lacked per-user detail, so a teammate wants user_id and request_id as Prometheus labels. Prometheus is already under memory pressure. Defend the call.
Answer key reviewed by Branko Petric
Read first: Kubernetes Observability: Logs, Metrics, and Monitoring
Your decision
Debugging is hard because metrics lack per-user detail, so a teammate wants to add user_id (and request_id) as Prometheus metric labels to slice everything by user. What do you do, and why?
The situation
During a recent incident nobody on the team could break down error rate by customer, so triage dragged while people grepped logs by hand. In the retro, a teammate proposes adding high-cardinality labels like user_id and request_id to the app's Prometheus metrics so that every dashboard can be sliced by user going forward.
Context
The Prometheus server is already showing memory pressure and has had a couple of OOM restarts under load. Metrics today carry bounded labels like route, status, and region. Logs and distributed tracing exist but are underused. A teammate in chat says: just add user_id and request_id as labels, it's one small change and it would have saved us hours last week.
Worked interview answers
- AI SRE and AIOps Interview Questions: What Interviewers Actually Ask
AI SRE and AIOps interview questions for 2026: what to say about agentic incident response, alert correlation, guardrails, and when to trust automation.
- How to Prepare for an SRE Interview: What Each Round Tests and How to Practice It
How to prepare for an SRE interview, round by round: coding, Linux and networking, SLO-based design, incident deep-dives and behavioral, plus a 4-week plan.
Related challenges
- On-Call Is Drowning in Alerts. Silence Them?
A CPU alert pages constantly with no real impact. A teammate wants to silence it. Defend how you fix alerting properly.
- p99 Latency Spiked Across a Microservice Chain
p99 latency jumped across a request that touches six services. A teammate wants to scale up the slowest-looking one. Defend how you find the real culprit.
- Chasing a Bug: Flip Production to DEBUG and Log Everything?
To catch an intermittent bug, a teammate wants to set the whole prod app to DEBUG and log full request and response bodies. Defend a safer approach.
- A 30-Second Blip Became a 2-Hour Outage. More Retries?
A brief downstream blip cascaded into a full-platform meltdown because every layer retried. A teammate wants to raise retry counts. Defend the real fix.