From 2eeef069a2d8400c0e29978e06f6345f5d29081f Mon Sep 17 00:00:00 2001 From: teutat3s Date: Mon, 27 May 2024 16:45:58 +0200 Subject: [PATCH] alerts: alert for uptime after 90 days instead --- modules/prometheus/alert-rules.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/prometheus/alert-rules.nix b/modules/prometheus/alert-rules.nix index fb832a0b..a483c2a9 100644 --- a/modules/prometheus/alert-rules.nix +++ b/modules/prometheus/alert-rules.nix @@ -152,8 +152,8 @@ lib.mapAttrsToList }; uptime = { - condition = "(time() - node_boot_time_seconds ) / (60*60*24) > 30"; - description = "Uptime monster: {{$labels.instance}} has been up for more than 30 days."; + condition = "(time() - node_boot_time_seconds ) / (60*60*24) > 90"; + description = "Uptime monster: {{$labels.instance}} has been up for more than 90 days."; }; flake_nixpkgs_outdated = {