From 2299e3aff1c0b612b575e6b191a76f656b825988 Mon Sep 17 00:00:00 2001 From: Gregor Michels Date: Thu, 23 Mar 2023 00:07:23 +0100 Subject: [PATCH] monitoring: make summary and description for snmp alarms more verbose --- files/alerting_rules.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/files/alerting_rules.yml b/files/alerting_rules.yml index 5cf4cde..ee83791 100644 --- a/files/alerting_rules.yml +++ b/files/alerting_rules.yml @@ -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"