Lowered uptime alert time to 30 days
This commit is contained in:
parent
dd0b49cd23
commit
0577ca8a39
1 changed files with 3 additions and 3 deletions
|
|
@ -253,10 +253,10 @@ prometheus_agent:
|
|||
alert: uptime
|
||||
expr: |
|
||||
node_time_seconds{job="node", instance="{{ inventory_hostname }}"} -
|
||||
node_boot_time_seconds{job="node", instance="{{ inventory_hostname }}"} > 3600*24*120
|
||||
node_boot_time_seconds{job="node", instance="{{ inventory_hostname }}"} > 3600*24*30
|
||||
for: 5m
|
||||
labels:
|
||||
severity: critical
|
||||
severity: warning
|
||||
annotations:
|
||||
title: '{%raw%}{{ $labels.instance }}: Uptime{%endraw%}'
|
||||
description: "Uptime is more than 120 days, please reboot soon"
|
||||
description: "Uptime is more than 30 days, please reboot soon"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue