From f8d6f160a42e66ac5c59ff01fd338053d110ee42 Mon Sep 17 00:00:00 2001 From: lavado Date: Wed, 30 Jan 2019 16:07:06 +0100 Subject: [PATCH] Revert "Increases delta of start_time when collecting OpenStack metrics" This reverts commit 1b6b0e02f6f82ccc8a441e26bb42183f63a48acc. Change-Id: Ieabe8e515fb3cfb5aa96802e4c5bc1305c21f2b3 --- osm_mon/collector/collectors/openstack.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osm_mon/collector/collectors/openstack.py b/osm_mon/collector/collectors/openstack.py index 30bab0c..395d607 100644 --- a/osm_mon/collector/collectors/openstack.py +++ b/osm_mon/collector/collectors/openstack.py @@ -99,8 +99,7 @@ class OpenstackCollector(BaseVimCollector): for param in vdu['monitoring-param']: metric_name = param['nfvi-metric'] gnocchi_metric_name = METRIC_MAPPINGS[metric_name] - delta = 10 * self.granularity - start_date = datetime.datetime.now() - datetime.timedelta(seconds=delta) + start_date = datetime.datetime.now() - datetime.timedelta(seconds=self.granularity) resource_id = self._get_resource_uuid(nsr_id, vnf_member_index, vdur['name']) try: measures = self.gnocchi_client.metric.get_measures(gnocchi_metric_name, -- 2.25.1