Interview practice question
Writing a PromQL query for error rate
Cloud & DevOps · Observability and SRE · Beginner
Your service exposes a counter http_requests_total with a status label. How would you calculate the percentage of requests returning 5xx errors?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- rate() over counters.
- Filter status=~"5..".
- sum numerator and denominator.
- Divide, multiply by 100.
- Choose window (e.g., 5m).
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.