AETHER-850 Room mapping for ace-menlo staging pod
Change-Id: I14b60df4d662ad945bc674f5ad8fff19a5784213
diff --git a/edge-monitoring/edge_monitoring_server.py b/edge-monitoring/edge_monitoring_server.py
index c5bb2f4..05cd859 100755
--- a/edge-monitoring/edge_monitoring_server.py
+++ b/edge-monitoring/edge_monitoring_server.py
@@ -54,7 +54,8 @@
}
room_mapping = {
- "ace-menlo-pixel": "(Compute)-MP-1-Aether Production"
+ "ace-menlo-pixel-production": "(Compute)-MP-1-Aether Production",
+ "ace-menlo-staging": "(Compute)-MP-1-Aether Staging"
}
cp_status = prom.Gauge("aetheredge_status_control_plane", "Control plane status code", ["name"])
@@ -69,9 +70,8 @@
fullname = "%s-%s" % (name, AETHER_ENV)
if fullname in getattr(event, field, ""):
return True
- if name in room_mapping:
- if room_mapping[name] in getattr(event, field, ""):
- return True
+ if fullname in room_mapping and room_mapping[fullname] in getattr(event, field, ""):
+ return True
return False
def is_naive_datetime(d):