diff --git a/test/pytest/test_prometheus.py b/test/pytest/test_prometheus.py index 6fb82913ae6a60e6e10de652da8eac47aed39241..f6456fcb386b92d4da71a24a2fe6b01977004ab4 100755 --- a/test/pytest/test_prometheus.py +++ b/test/pytest/test_prometheus.py @@ -21,19 +21,22 @@ def test_prometheus_alerts(host): ignored_alerts = [] for alert in alerts: - # Filter out the ever firing "Dead mans switch" test alert + # Ignore the ever firing "Dead mans switch" test alert if (alert["labels"]["severity"] == "none" or \ # Filter out failing Nextcloud installation jobs since a lot of # them fail until they succeed during installation (re.match(r'(KubeJobFailed|KubeJobCompletion)', alert["labels"]["alertname"]) and "nextcloud" in alert["labels"]["job_name"]) or - # Filter out failing Nextcloud pods since a lot of pods fail + # Ignore failing Nextcloud pods since a lot of pods fail # during installation # We use python-behave tests to check for functionality (re.match(r'(KubePodNotReady)', alert["labels"]["alertname"]) and - "nextcloud" in alert["labels"]["pod"])): + "nextcloud" in alert["labels"]["pod"]) or + # Ignore `KubeAPILatencyHigh` fom high load during installation + # phase + alert["labels"]["alertname"] == "KubeAPILatencyHigh"): ignored_alerts.append(alert) else: real_alerts.append(alert)