Interview Prep/Real-World Interview/Monitoring and security

What is high cardinality, and why does it hurt?

AdvancedConceptMonitoring and security
Answer

Labels with many unique values (user ID, request ID, full URL) create a separate time series for every combination. That blows up memory and storage in Prometheus. Put those values in logs or traces, not in metric labels.

All Real-World Interview questions Roadmap: Interview readiness

More on Monitoring and security