This commit is contained in:
nd 2024-05-20 13:35:10 +02:00
commit dfa8092538
4 changed files with 26 additions and 3 deletions

View file

@ -275,3 +275,17 @@ prometheus_agent:
annotations:
title: '{%raw%}{{ $labels.instance }}: Uptime{%endraw%}'
description: "Uptime is more than 30 days, please reboot soon"
AptUpgradesPending:
group: nodeexporter
enabled: True
alert: UpgradesPending
expr: |
sum(apt_upgrades_pending{job="node", instance="{{ inventory_hostname }}"}) > 0 or
sum(apt_upgrades_held{job="node", instance="{{ inventory_hostname }}"}) > 0
for: 25h
labels:
severity: warning
instance: "{{ inventory_hostname }}"
annotations:
title: '{%raw%}{{ $labels.instance }}: AptUpgradesPending{%endraw%}'
description: "Upgrades pending for more than 24 hours"