From 24f7095cd59ce2d2b46c9d0090f1fc27b58bbe8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Can=C3=A9vet?= Date: Fri, 29 May 2020 10:11:54 +0200 Subject: [PATCH] Fix HAProxy rules --- _data/rules.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_data/rules.yml b/_data/rules.yml index c60ab90..505931c 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -822,7 +822,7 @@ groups: rules: - name: HAProxy down description: HAProxy down - query: 'haproxy_up = 0' + query: 'haproxy_up == 0' severity: critical - name: HAProxy high HTTP 4xx error rate backend description: Too many HTTP requests with status 4xx (> 5%) on backend {{ $labels.fqdn }}/{{ $labels.backend }} @@ -870,11 +870,11 @@ groups: severity: warning - name: HAProxy backend down description: HAProxy backend is down - query: 'haproxy_backend_up = 0' + query: 'haproxy_backend_up == 0' severity: critical - name: HAProxy server down description: HAProxy server is down - query: 'haproxy_server_up = 0' + query: 'haproxy_server_up == 0' severity: critical - name: HAProxy frontend security blocked requests description: HAProxy is blocking requests for security reason