Interview Prep/Real-World Interview/Monitoring and security

Write the PromQL for the 5xx error ratio over 5 minutes.

IntermediateConceptMonitoring and security
Answer
sum(rate(http_requests_total{status=~"5.."}[5m]))
/
sum(rate(http_requests_total[5m]))
All Real-World Interview questions Roadmap: Interview readiness

More on Monitoring and security