Reformat MON to standardized format
[osm/MON.git] / osm_mon / collector / vnf_collectors / juju.py
index 30f4586..7e639b5 100644 (file)
@@ -40,8 +40,8 @@ class VCACollector(BaseCollector):
         super().__init__(config)
         self.common_db = CommonDbClient(config)
         self.loop = asyncio.get_event_loop()
-        host = config.get("vca", "host")
-        port = config.get("vca", "port") if "port" in config.conf["vca"] else 17070
+        host = config.get("vca", "host")
+        port = config.get("vca", "port") if "port" in config.conf["vca"] else 17070
 
         # Backwards compatibility
         if "cacert" in config.conf["vca"]:
@@ -124,7 +124,9 @@ class VCACollector(BaseCollector):
                 return metrics
             measures = self.loop.run_until_complete(
                 self.n2vc.get_metrics(
-                    vca_deployment_info["model"], vca_deployment_info["application"]
+                    vca_deployment_info["model"],
+                    vca_deployment_info["application"],
+                    vca_id=vnfr.get("vca-id"),
                 )
             )
             # Search for Mgmt VDU name, needed to query Prometheus based on alarm tags