From 9cb3778c03f40642a406924a11b13b6265569559 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Mon, 15 Jun 2020 13:47:31 -0400 Subject: [PATCH] nixos/servnerr-3: exclude HTPC from alerting Signed-off-by: Matt Layher --- nixos/servnerr-3/prometheus-alerts.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/servnerr-3/prometheus-alerts.nix b/nixos/servnerr-3/prometheus-alerts.nix index de56177..cdc5d6b 100644 --- a/nixos/servnerr-3/prometheus-alerts.nix +++ b/nixos/servnerr-3/prometheus-alerts.nix @@ -2,11 +2,11 @@ groups = [{ name = "default"; rules = [ - # Desktop PC is excluded from alerts as it isn't running 24/7, and - # lab-* jobs are excluded due to their experimental nature. + # PCs which don't run 24/7 are excluded from alerts, and lab-* jobs are + # excluded due to their experimental nature. { alert = "InstanceDown"; - expr = ''up{instance!~"nerr-3.*",job!~"lab-.*"} == 0''; + expr = ''up{instance!~"(nerr-3.*|theatnerr-1.*)",job!~"lab-.*"} == 0''; for = "2m"; annotations.summary = "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes.";