mob next [ci-skip] [ci skip] [skip ci]
lastFile:inventories/default.nix
This commit is contained in:
@@ -367,10 +367,10 @@
|
||||
name = "default";
|
||||
rules = [
|
||||
{
|
||||
alert = "test";
|
||||
expr = ''up{instance!~"(nerr-.*|theatnerr-.*)",job!~"lab-.*|snmp-.*"} == 0'';
|
||||
alert = "NodeDown";
|
||||
expr = "up == 0";
|
||||
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 }}";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
options = {
|
||||
scrape_interval = lib.mkOption {
|
||||
type = with lib.types; nullOr str;
|
||||
default = "5m";
|
||||
description = "How often to scrape targets. Default is 5 minutes";
|
||||
default = "1m";
|
||||
description = "How often to scrape targets. Default is 1 minutes";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user