From 72643dfc16acbe3f212d39209eaac0cc17dfc901 Mon Sep 17 00:00:00 2001 From: maralorn Date: Wed, 11 Jan 2023 15:30:52 +0100 Subject: [PATCH] Adapat alertmanager rules to disabled units --- nixos/roles/monitoring/rules.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/roles/monitoring/rules.yml b/nixos/roles/monitoring/rules.yml index e711f804..8915ded3 100644 --- a/nixos/roles/monitoring/rules.yml +++ b/nixos/roles/monitoring/rules.yml @@ -16,7 +16,7 @@ groups: annotations: description: '{{ $labels.name }} is not reachable.' - alert: systemd_service_failed - expr: node_systemd_unit_state{state="failed",exported_name!~"NetworkManager-wait-online.*"} == 1 + expr: node_systemd_unit_state{state="failed"} == 1 for: 5m labels: severity: critical