fix(haproxy): some query were using wrong metrics name

This commit is contained in:
Samuel Berthe 2021-05-01 22:48:54 +02:00
parent 2c62d2cd6e
commit 092d0f8bda
No known key found for this signature in database
GPG key ID: 64863511FFBD0E3C

View file

@ -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