Nginx high HTTP 5xx error rate critical
Too many HTTP requests with status 5xx (> 5%)
>>>
sum
(
rate
(
{status=~"^5.."}[1m])) /
sum
(
rate
(
[1m])) * 100 > 5
The query computes the percentage of Nginx requests that returned 5xx status codes in the last minute by dividing the sum of the rate of nginx_http_requests_total{status=~"^5.."} by the sum of the total request rate and multiplying by 100. The alert triggers when this percentage exceeds 5 %.
Get Alert✕
Download
Copy to Clipboard