mob next [ci-skip] [ci skip] [skip ci]

lastFile:inventories/default.nix
This commit is contained in:
2026-06-19 14:38:15 +07:00
parent f442d0e2fe
commit dffaf4bf0d
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -367,10 +367,10 @@
name = "default"; name = "default";
rules = [ rules = [
{ {
alert = "test"; alert = "NodeDown";
expr = ''up{instance!~"(nerr-.*|theatnerr-.*)",job!~"lab-.*|snmp-.*"} == 0''; expr = "up == 0";
for = "1m"; for = "1m";
annotations.summary = "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."; annotations.summary = "Node {{ $labels.job }} has been down for more than 1 minutes. {{ $labels.instance }}";
} }
]; ];
} }
+2 -2
View File
@@ -15,8 +15,8 @@
options = { options = {
scrape_interval = lib.mkOption { scrape_interval = lib.mkOption {
type = with lib.types; nullOr str; type = with lib.types; nullOr str;
default = "5m"; default = "1m";
description = "How often to scrape targets. Default is 5 minutes"; description = "How often to scrape targets. Default is 1 minutes";
}; };
}; };
}; };