Interview Prep/Real-World Interview/Monitoring and security

Write PromQL for p99 latency from a histogram.

AdvancedConceptMonitoring and security
Answer
histogram_quantile(0.99, sum by (le) (rate(http_request_duration_seconds_bucket[5m])))

Keep le in the by clause, or the quantile can't be computed.

All Real-World Interview questions Roadmap: Interview readiness

More on Monitoring and security