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

nixos/servnerr-3: exclude HTPC from alerting

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-06-15 13:47:31 -04:00
parent 4fd972566a
commit 9cb3778c03
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94

View file

@ -2,11 +2,11 @@
groups = [{ groups = [{
name = "default"; name = "default";
rules = [ rules = [
# Desktop PC is excluded from alerts as it isn't running 24/7, and # PCs which don't run 24/7 are excluded from alerts, and lab-* jobs are
# lab-* jobs are excluded due to their experimental nature. # excluded due to their experimental nature.
{ {
alert = "InstanceDown"; alert = "InstanceDown";
expr = ''up{instance!~"nerr-3.*",job!~"lab-.*"} == 0''; expr = ''up{instance!~"(nerr-3.*|theatnerr-1.*)",job!~"lab-.*"} == 0'';
for = "2m"; for = "2m";
annotations.summary = annotations.summary =
"{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes."; "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes.";