HAProxy high HTTP 5xx error rate backend critical
Too many HTTP requests with status 5xx (> 5%) on backend {{ $labels.fqdn }}/{{ $labels.backend }}
>>>
((sum by (proxy) (
rate
(
{code="5xx"}[1m])) / sum by (proxy) (
rate
(
[1m]))) * 100) > 5
The query calculates the percentage of HTTP responses with 5xx status codes for each HAProxy proxy over the past minute by dividing the 5xx response rate (sum by proxy) by the total response rate (sum by proxy), multiplying by 100, and it fires when this percentage is greater than 5 %. When that happens, the alert is triggered and includes the affected backend and fqdn from the $labels.
Get Alert✕
Download
Copy to Clipboard