Interview Prep/Monitoring & Observability/Prometheus storage, memory and cardinality

After a Prometheus upgrade, queries for `http_requests_total` return nothing but `http_requests_total_total` exists

BeginnerTroubleshootingPrometheus storage, memory and cardinality
Answer

Likely causes → The app's client library or an OTel-to-Prometheus conversion appended _total to a counter that already ended in _total, or a library upgrade changed naming.

Diagnose →

{__name__=~"http_requests.*"}

Fix → Rename the counter in code to http_requests (library adds _total), or set the OTel exporter/translation option correctly. Update dashboards with a temporary or query during migration.

Prevent → Pin client libraries and review metric names after upgrades.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus storage, memory and cardinality