mob next [ci-skip] [ci skip] [skip ci]
lastFile:inventories/default.nix
This commit is contained in:
@@ -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 }}";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user