mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 08:57:19 +08:00
fix(haproxy): some query were using wrong metrics name
This commit is contained in:
parent
2c62d2cd6e
commit
092d0f8bda
1 changed files with 3 additions and 3 deletions
|
|
@ -1277,7 +1277,7 @@ groups:
|
|||
for: 1m
|
||||
- name: HAProxy server connection errors
|
||||
description: Too many connection errors to {{ $labels.server }} server (> 100 req/s). Request throughput may be to high.
|
||||
query: (sum by (proxy) (rate(haproxy_backend_connection_errors_total[1m]))) > 100
|
||||
query: (sum by (proxy) (rate(haproxy_server_connection_errors_total[1m]))) > 100
|
||||
severity: critical
|
||||
- name: HAProxy backend max active session
|
||||
description: HAproxy backend {{ $labels.fqdn }}/{{ $labels.backend }} is reaching session limit (> 80%).
|
||||
|
|
@ -1336,12 +1336,12 @@ groups:
|
|||
for: 1m
|
||||
- name: HAProxy high HTTP 4xx error rate server
|
||||
description: Too many HTTP requests with status 4xx (> 5%) on server {{ $labels.server }}
|
||||
query: 'sum by (server) rate(haproxy_server_http_responses_total{code="4xx"}[1m]) / sum by (backend) rate(haproxy_server_http_responses_total[1m]) * 100 > 5'
|
||||
query: 'sum by (server) rate(haproxy_server_http_responses_total{code="4xx"}[1m]) / sum by (server) rate(haproxy_server_http_responses_total[1m]) * 100 > 5'
|
||||
severity: critical
|
||||
for: 1m
|
||||
- name: HAProxy high HTTP 5xx error rate server
|
||||
description: Too many HTTP requests with status 5xx (> 5%) on server {{ $labels.server }}
|
||||
query: 'sum by (server) rate(haproxy_server_http_responses_total{code="5xx"}[1m]) / sum by (backend) rate(haproxy_server_http_responses_total[1m]) * 100 > 5'
|
||||
query: 'sum by (server) rate(haproxy_server_http_responses_total{code="5xx"}[1m]) / sum by (server) rate(haproxy_server_http_responses_total[1m]) * 100 > 5'
|
||||
severity: critical
|
||||
for: 1m
|
||||
- name: HAProxy server response errors
|
||||
|
|
|
|||
Loading…
Reference in a new issue