Skip to content

Commit

Permalink
refactor(haproxy): improve HaproxyHighHttp5xxErrorRateServer
Browse files Browse the repository at this point in the history
Exclude stats backend
  • Loading branch information
bdossantos committed Jun 18, 2023
1 parent 9c4f39f commit efdd858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/haproxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ groups:
description: "Too many HTTP requests with status 4xx (> 5%) on server {{ $labels.server }}\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"

- alert: HaproxyHighHttp5xxErrorRateServer
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
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
for: 5m
labels:
severity: page
Expand Down

0 comments on commit efdd858

Please sign in to comment.