Extend procstat_running-based metric alerts.
Related-PROD: PROD-35435
Change-Id: Ie15ffaa335e3501573630846816684964c75aef7
diff --git a/kibana/meta/prometheus.yml b/kibana/meta/prometheus.yml
index 2dda0ca..90c371b 100644
--- a/kibana/meta/prometheus.yml
+++ b/kibana/meta/prometheus.yml
@@ -6,6 +6,7 @@
if: >-
procstat_running{process_name="kibana"} == 0
{% raw %}
+ for: 2m
labels:
severity: minor
service: kibana
@@ -17,6 +18,7 @@
if: >-
count(procstat_running{process_name="kibana"} == 0) >= count(procstat_running{process_name="kibana"}) * {{ monitoring.service_failed_warning_threshold_percent }}
{% raw %}
+ for: 2m
labels:
severity: minor
service: kibana
@@ -28,6 +30,7 @@
if: >-
count(procstat_running{process_name="kibana"} == 0) >= count(procstat_running{process_name="kibana"}) * {{ monitoring.service_failed_critical_threshold_percent }}
{% raw %}
+ for: 2m
labels:
severity: major
service: kibana
@@ -39,6 +42,7 @@
if: >-
count(procstat_running{process_name="kibana"} == 0) == count(procstat_running{process_name="kibana"})
{% raw %}
+ for: 2m
labels:
severity: critical
service: kibana
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 9761585..f4d5df0 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -40,6 +40,7 @@
virtualenv $VENV_DIR
source ${VENV_DIR}/bin/activate
python -m pip install salt${PIP_SALT_VERSION}
+ python -m pip install 'msgpack<1.0.0'
}
setup_mock_bin() {