Added new bond related alert
Fire an alert when only one bond slave is found for the
bond interface.
Change-Id: If75af27f8d4b9c75a003d3072501acb1ce738399
Closes-Bug: PROD-29613
diff --git a/linux/meta/prometheus.yml b/linux/meta/prometheus.yml
index 32db6bc..f3049fa 100644
--- a/linux/meta/prometheus.yml
+++ b/linux/meta/prometheus.yml
@@ -350,5 +350,14 @@
annotations:
summary: "50% of bond interface slaves {{ $labels.bond }} are down"
description: "{{ $value }} {{ $labels.bond }} bond interface slaves on the {{ $labels.host }} node are down."
+ BondInterfaceSingleSlave:
+ if: >-
+ count(bond_slave_status) by (bond,host) == 1
+ labels:
+ severity: major
+ service: system
+ annotations:
+ summary: "The {{ $labels.bond }} bond interface has only one slave"
+ description: "The {{ $labels.bond }} bond interface on the {{ $labels.host }} node has only one slave."
{%- endraw %}
{%- endif %}