Merge branch 'master' of https://git.cccv.de/infra/ansible/roles/prometheus-agent
This commit is contained in:
commit
dfa8092538
4 changed files with 26 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue