Extend procstat_running-based metric alerts.
Related-PROD: PROD-35435
Change-Id: Ie9ef7e4f5edd0d9bbd276d17fcd9eb428349298c
diff --git a/cinder/meta/prometheus.yml b/cinder/meta/prometheus.yml
index b9d548c..179cac7 100644
--- a/cinder/meta/prometheus.yml
+++ b/cinder/meta/prometheus.yml
@@ -112,6 +112,7 @@
if: >-
procstat_running{process_name="cinder-volume"} == 0
{% raw %}
+ for: 2m
labels:
severity: minor
service: cinder
@@ -123,6 +124,7 @@
if: >-
count(procstat_running{process_name="cinder-volume"} == 0) >= count(procstat_running{process_name="cinder-volume"}) * {{ minor_threshold }}
{% raw %}
+ for: 2m
labels:
severity: minor
service: cinder
@@ -134,6 +136,7 @@
if: >-
count(procstat_running{process_name="cinder-volume"} == 0) >= count(procstat_running{process_name="cinder-volume"}) * {{ major_threshold }}
{% raw %}
+ for: 2m
labels:
severity: major
service: cinder
@@ -145,6 +148,7 @@
if: >-
count(procstat_running{process_name="cinder-volume"} == 0) == count(procstat_running{process_name="cinder-volume"})
{% raw %}
+ for: 2m
labels:
severity: critical
service: cinder