Interview Prep/Real-World Interview/Monitoring and security

Counter vs gauge vs histogram?

AdvancedConceptMonitoring and security
Answer

A counter only goes up (use rate() on it). A gauge goes up and down (memory, queue depth). A histogram counts observations into buckets, so you can compute percentiles with histogram_quantile().

All Real-World Interview questions Roadmap: Interview readiness

More on Monitoring and security