Replaces call to Gnocchi status for a request of metric list when determining backend...
[osm/MON.git] / osm_mon / collector / vnf_collectors / openstack.py
index f63d0b2..58721a9 100644 (file)
@@ -122,7 +122,7 @@ class OpenstackCollector(BaseVimCollector):
             return ceilometer
         except EndpointNotFound:
             gnocchi = GnocchiBackend(vim_account)
-            gnocchi.client.status.get()
+            gnocchi.client.metric.list(limit=1)
             return gnocchi
 
     def _get_metric_type(self, metric_name: str, interface_name: str) -> MetricType: