HAProxy high HTTP 4xx error rate server critical
Too many HTTP requests with status 4xx (> 5%) on server {{ $labels.server }}
>>>
((sum by (server) (
rate
(
{code="4xx"}[1m])) / sum by (server) (
rate
(
[1m]))) * 100) > 5
The query calculates the percentage of HTTP responses with 4xx status codes per server over the last minute, and triggers when this percentage exceeds 5 %. It sums the 4xx response rate and divides by the total response rate for each server, then multiplies by 100.
Get Alert✕
Download
Copy to Clipboard