1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/servnerr-4: nixfmt

This commit is contained in:
Matt Layher 2024-11-08 10:42:35 -05:00
parent f1eb5aaa17
commit 291b1b6b3a
3 changed files with 9 additions and 10 deletions

View file

@ -62,7 +62,7 @@ in {
};
networks."11-mgmt1" = {
matchConfig.Name = "mgmt1";
bridge = ["br0"];
bridge = [ "br0" ];
};
};
}

View file

@ -6,14 +6,16 @@
# excluded due to their experimental nature.
{
alert = "InstanceDown";
expr = ''up{instance!~"(nerr-.*|theatnerr-.*)",job!~"lab-.*|snmp-.*"} == 0'';
expr =
''up{instance!~"(nerr-.*|theatnerr-.*)",job!~"lab-.*|snmp-.*"} == 0'';
for = "5m";
annotations.summary =
"{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes.";
}
{
alert = "ServiceDown";
expr = ''probe_success{instance!~"nerr-.*",job!~"lab-.*|snmp-.*"} == 0'';
expr =
''probe_success{instance!~"nerr-.*",job!~"lab-.*|snmp-.*"} == 0'';
for = "5m";
annotations.summary =
"{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes.";

View file

@ -64,9 +64,8 @@ in {
};
receivers = [{
name = "default";
discord_configs = [{
webhook_url = secrets.alertmanager.discord.webhook_url;
}];
discord_configs =
[{ webhook_url = secrets.alertmanager.discord.webhook_url; }];
}];
};
};
@ -97,14 +96,12 @@ in {
}));
};
# SNMP exporter with data file from release 0.19.0.
# SNMP exporter with data file from release 0.26.0.
snmp = {
enable = true;
configurationPath = builtins.fetchurl {
url =
"https://raw.githubusercontent.com/prometheus/snmp_exporter/1964bce321942a73f994813103ed2ca2e432039d/snmp.yml";
sha256 =
"sha256:0cshh89ijchi10iqijvmw473hhxf5cdrd1y0502wlwgw4glbis36";
"https://raw.githubusercontent.com/prometheus/snmp_exporter/44f8732988e726bad3f13d5779f1da7705178642/snmp.yml";
};
};
};