Change-Id: I5e7049693ccdffbe263b44cb16b7e0a155886207
Signed-off-by: Rahul Kumar <rahul.k4@tataelxsi.co.in>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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(