Skip to content

Commit efdd858

Browse files
committed
refactor(haproxy): improve HaproxyHighHttp5xxErrorRateServer
Exclude stats backend
1 parent 9c4f39f commit efdd858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/haproxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ groups:
1212
description: "Too many HTTP requests with status 4xx (> 5%) on server {{ $labels.server }}\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
1313

1414
- alert: HaproxyHighHttp5xxErrorRateServer
15-
expr: (sum by (proxy) (rate(haproxy_backend_http_responses_total{code="5xx",proxy!="maintenancez"}[1m])) / sum by (proxy) (rate(haproxy_backend_http_responses_total{proxy!="maintenancez"}[1m]))) * 100 > 1
15+
expr: (sum by (proxy) (rate(haproxy_backend_http_responses_total{code="5xx",proxy!~"maintenancez|stats"}[1m])) / sum by (proxy) (rate(haproxy_backend_http_responses_total{proxy!~"maintenancez|stats"}[1m]))) * 100 > 1
1616
for: 5m
1717
labels:
1818
severity: page

0 commit comments

Comments
 (0)