HAProxy high HTTP 5xx error rate backend critical
>>>
((sum by (proxy) (
rate
(
haproxy_server_http_responses_total
{code="5xx"}[1m])) / sum by (proxy) (
rate
(
haproxy_server_http_responses_total
[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.
Exporters Used
Related Alerts
HAProxy HTTP slowing down
HAProxy HTTP slowing down
HAProxy backend connection errors
HAProxy backend connection errors
HAProxy backend down
HAProxy backend max active session
HAProxy backend max active session > 80%
HAProxy down
HAProxy frontend security blocked requests
HAProxy frontend security blocked requests
HAProxy high HTTP 4xx error rate backend
HAProxy high HTTP 4xx error rate backend
HAProxy high HTTP 4xx error rate server
HAProxy high HTTP 4xx error rate server
HAProxy high HTTP 5xx error rate backend
HAProxy high HTTP 5xx error rate server
HAProxy high HTTP 5xx error rate server
HAProxy pending requests
HAProxy pending requests
HAProxy retry high
HAProxy retry high
HAProxy server connection errors
HAProxy server connection errors
HAProxy server down
HAProxy server healthcheck failure
HAProxy server healthcheck failure
HAProxy server response errors
HAProxy server response errors
HAproxy has no alive backends