add alert for systemd services
This commit is contained in:
parent
f3a7dc4667
commit
2fe4e2435d
1 changed files with 12 additions and 0 deletions
|
|
@ -188,6 +188,18 @@ prometheus_agent:
|
|||
annotations:
|
||||
title: '{%raw%}{{ $labels.instance }}: TempCritical{%endraw%}'
|
||||
description: "Too hot!"
|
||||
SystemdServices:
|
||||
group: nodeexporter
|
||||
enabled: True
|
||||
alert: systemd
|
||||
expr: |
|
||||
node_systemd_units{job="node", instance=~"{{ inventory_hostname }}", state="failed"} > 0
|
||||
for: 5m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
title: '{%raw%}{{ $labels.instance }}: Not all systemd services are running{%endraw%}'
|
||||
description: "Service not running"
|
||||
|
||||
tls:
|
||||
mode: stunnel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue