HAProxy high HTTP 4xx error rate backend critical
>>>
((sum by (proxy) (
rate
(
haproxy_server_http_responses_total
{code="4xx"}[1m])) / sum by (proxy) (
rate
(
haproxy_server_http_responses_total
[1m]))) * 100) > 5
The query computes, for each HAProxy proxy, the percentage of HTTP responses with a 4xx status over the last minute by dividing the 1‑minute rate of haproxy_server_http_responses_total{code="4xx"} by the total response rate, multiplying by 100, and triggers the alert when this percentage exceeds 5 % for the backend identified by the fqdn and backend 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 server
HAProxy high HTTP 4xx error rate server
HAProxy high HTTP 5xx error rate backend
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