monitoring: make summary and description for snmp alarms more verbose

master
Gregor Michels 2023-03-23 00:07:23 +01:00
parent d1c1f34bf8
commit 2299e3aff1
1 changed files with 4 additions and 5 deletions

View File

@ -62,8 +62,8 @@ groups:
labels:
severity: warning
annotations:
summary: A switch port changed it's state {{ $value }}x time
description: "For some reason a switch port changed it's state\n LABELS = {{ $labels }}"
summary: "{{ $labels.ifName }} on {{ $labels.instance }} changed it's state {{ $value }}x time(s) in the last 2 hours"
description: "This alarm will clear in 2 hours"
- alert: PortIfInErrors
expr: ifInErrors > 0
@ -83,9 +83,8 @@ groups:
- alert: SNMPNodeRebooted
expr: (sysUpTime / 100) <= (60 * 60 * 2)
for: 0m
labels:
severity: critical
annotations:
summary: A snmp node rebooted in the last 2 hours (instance {{ $labels.instance }})
description: "The uptime of a snmp node changed in the last two hours. VALUE = {{ $value }}\n LABELS = {{ $labels }}"
summary: "{{ $labels.instance }} rebooted at least one time in the last two hours"
description: "This alarm will clear in 2 hours"