From 229a6617defb165993aa1f29cf2901f7bece22e3 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Wed, 1 Nov 2023 07:11:30 +0100 Subject: [PATCH] prometheus: add queue overflow quanta alert --- group_vars/prom/prometheus.yml | 8 ++++++++ group_vars/prom/prometheus_snmp.yml | 2 ++ 2 files changed, 10 insertions(+) diff --git a/group_vars/prom/prometheus.yml b/group_vars/prom/prometheus.yml index 09ca35c..d4c06ff 100644 --- a/group_vars/prom/prometheus.yml +++ b/group_vars/prom/prometheus.yml @@ -234,9 +234,17 @@ prometheus__alert_rules_bird: summary: "{{ '$labels.name' | interp }} : {{ '$labels.state' | interp }}" +prometheus__alert_rules_quanta: + - alert: QuantaQueueOverflow + expr: "snAgGblQueueOverflow > 0" + for: 0m + labels: + severity: critical + prometheus__alert_rules: prometheus: "{{ prometheus__alert_rules_prometheus }}" node: "{{ prometheus__alert_rules_node }}" keepalived: "{{ prometheus__alert_rules_keepalived }}" + quanta: "{{ prometheus__alert_rules_quanta }}" #bird: "{{ prometheus__alert_rules_bird }}" ... diff --git a/group_vars/prom/prometheus_snmp.yml b/group_vars/prom/prometheus_snmp.yml index 28d3402..3c6ff99 100644 --- a/group_vars/prom/prometheus_snmp.yml +++ b/group_vars/prom/prometheus_snmp.yml @@ -18,7 +18,9 @@ prometheus_snmp__modules: - snChasFan - snChasPwr - snAgentTemp + - snAgentCpu - snNTP + - snSwInfo lookups: - source_indexes: - ifIndex