prometheus: add alert for resilio sync going down
All checks were successful
flake / flake (push) Successful in 1m17s
All checks were successful
flake / flake (push) Successful in 1m17s
This commit is contained in:
parent
33cdcdca0a
commit
6f5b9430c9
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user