Be able to monitor the Keepalived node State
Change-Id: I1f38472141220d937d78ac17a22268bc6dac3b39
Related-Bug: PROD-18708
diff --git a/keepalived/meta/prometheus.yml b/keepalived/meta/prometheus.yml
index 5172ace..3c3b969 100644
--- a/keepalived/meta/prometheus.yml
+++ b/keepalived/meta/prometheus.yml
@@ -13,4 +13,15 @@
summary: 'Keepalived service is down'
description: 'Keepalived service is down on node {{ $labels.host }}'
{% endraw %}
+ KeepalivedStateFailed:
+ if: >-
+ keepalived_state == 0
+ {% raw %}
+ labels:
+ severity: warning
+ service: keepalived
+ annotations:
+ summary: 'Keepalived is in the Failed state'
+ description: 'Keepalived service is in Failed state on node {{ $labels.host }}'
+ {% endraw %}
{%- endif %}