HAProxy high HTTP 5xx error rate server critical
Too many HTTP requests with status 5xx (> 5%) on server {{ $labels.server }}
>>>
((sum by (server) (
rate
(
{code="5xx"}[1m])) / sum by (server) (
rate
(
[1m]))) * 100) > 5
The rule computes, for each server, the percentage of HTTP responses that are 5xx over the last minute by dividing the per‑second rate of haproxy_server_http_responses_total{code="5xx"} by the total response rate and multiplying by 100; the alert fires when this error‑rate exceeds 5 % for a given server.
Get Alert✕
Download
Copy to Clipboard