From 1d1764093b9dd7cc8801b6eefdd7063e25841bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Mon, 3 Oct 2022 10:04:24 +0300 Subject: [PATCH] prometheus-operator: Remove pulled UPS-es --- prometheus-operator/snmp-exporter.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/prometheus-operator/snmp-exporter.yml b/prometheus-operator/snmp-exporter.yml index b15e223..4df3072 100644 --- a/prometheus-operator/snmp-exporter.yml +++ b/prometheus-operator/snmp-exporter.yml @@ -88,8 +88,6 @@ spec: staticConfig: static: - ups-4.mgmt.k-space.ee - - ups-5.mgmt.k-space.ee - - ups-6.mgmt.k-space.ee - ups-7.mgmt.k-space.ee - ups-8.mgmt.k-space.ee - ups-9.mgmt.k-space.ee @@ -113,7 +111,7 @@ spec: annotations: summary: One or more UPS-es is not in normal operation mode. This either means power is lost or UPS was loaded and it's now in bypass mode. - expr: sum(snmp_upsOutputSource { upsOutputSource = 'normal' }) < 6 + expr: sum(snmp_upsOutputSource { upsOutputSource = 'normal' }) != 4 for: 1m labels: severity: critical