Fix bug in ManyEdgeConnectTestsFailing
Change-Id: I14e8acda7e535b17bbdd69c69deeac73df307096
diff --git a/monitoring/edge-monitoring-server/Chart.yaml b/monitoring/edge-monitoring-server/Chart.yaml
index e14919f..776de58 100644
--- a/monitoring/edge-monitoring-server/Chart.yaml
+++ b/monitoring/edge-monitoring-server/Chart.yaml
@@ -8,7 +8,7 @@
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.4.1
+version: 0.4.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
diff --git a/monitoring/edge-monitoring-server/templates/prometheusrule.yaml b/monitoring/edge-monitoring-server/templates/prometheusrule.yaml
index fc29f2a..ecc6acf 100644
--- a/monitoring/edge-monitoring-server/templates/prometheusrule.yaml
+++ b/monitoring/edge-monitoring-server/templates/prometheusrule.yaml
@@ -47,7 +47,7 @@
annotations:
message: |
{{`{{ $value | humanizePercentage }}`}} of the clusters are reporting UE connect failures.
- expr: avg(aetheredge_connect_test_ok{endpoint="metrics80"}) < 0.5
+ expr: avg(clamp_max(aetheredge_connect_test_ok{endpoint="metrics80"} + aetheredge_in_maintenance_window{endpoint="metrics80"}, 1)) < 0.5
for: 10m
labels:
severity: critical