service/node-exporter: ignore alerts for user services

This commit is contained in:
Felix Buehler 2023-07-23 19:11:19 +02:00
parent ebdaebbbf4
commit 724ca9dc1a

View file

@ -164,7 +164,8 @@ in
}; };
# systemd # systemd
systemd_crashed = { 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 }})"; description = "Host SystemD service crashed (instance {{ $labels.instance }})";
}; };
# time # time