mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/node-exporter: ignore alerts for user services
This commit is contained in:
parent
ebdaebbbf4
commit
724ca9dc1a
1 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,8 @@ in
|
|||
};
|
||||
# systemd
|
||||
systemd_crashed = {
|
||||
condition = ''node_systemd_unit_state{state="failed"} == 1'';
|
||||
# ignore user services
|
||||
condition = ''node_systemd_unit_state{state="failed", name!~"user@\\d+.service"} == 1'';
|
||||
description = "Host SystemD service crashed (instance {{ $labels.instance }})";
|
||||
};
|
||||
# time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue