prometheus: add alert for resilio sync going down
All checks were successful
flake / flake (push) Successful in 1m17s

This commit is contained in:
Jake Hillion 2024-10-12 20:16:23 +01:00
parent 33cdcdca0a
commit 6f5b9430c9

View File

@ -23,6 +23,20 @@ in
targets = builtins.map (x: "${x}:9000") (builtins.attrNames (builtins.readDir ../../hosts));
}];
}];
rules = [
''
groups:
- name: service alerting
rules:
- alert: ResilioSyncDown
expr: node_systemd_unit_state{ name = 'resilio.service', state != 'active' } > 0
for: 10m
annotations:
summary: "Resilio Sync systemd service is down"
description: "The Resilio Sync systemd service is not active on instance {{ $labels.instance }}."
''
];
};
services.caddy = {