From: Rahul Kumar Date: Thu, 9 Nov 2023 08:49:03 +0000 (+0000) Subject: Bug Fix - 2305: Automated scaling of Vnf is not happening through metrics collected... X-Git-Tag: release-v16.0-start~6 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=d2ca1143b99c885ade0c63c5a0cadd9334071460;p=osm%2FMON.git Bug Fix - 2305: Automated scaling of Vnf is not happening through metrics collected by feature Service KPI of VNF using exporter endpoint Change-Id: I5e7049693ccdffbe263b44cb16b7e0a155886207 Signed-off-by: Rahul Kumar --- diff --git a/osm_mon/collector/vnf_collectors/openstack.py b/osm_mon/collector/vnf_collectors/openstack.py index 514245b..6aedf88 100644 --- a/osm_mon/collector/vnf_collectors/openstack.py +++ b/osm_mon/collector/vnf_collectors/openstack.py @@ -148,7 +148,10 @@ class OpenstackCollector(BaseVimCollector): if type(self.backend) is PrometheusTSBDBackend: openstack_metric_name = self.backend.map_metric(metric_name) else: - openstack_metric_name = METRIC_MAPPINGS[metric_name] + try: + openstack_metric_name = METRIC_MAPPINGS[metric_name] + except KeyError: + continue metric_type = self._get_metric_type(metric_name) try: resource_id = self._get_resource_uuid(