From 217286eb4bd5c1a1eeafab6c22ec63327dc58fda Mon Sep 17 00:00:00 2001 From: lavado Date: Thu, 31 Jan 2019 20:10:46 +0100 Subject: [PATCH] "Increases delta of start_time when collecting OpenStack metrics" This reverts commit f8d6f160a42e66ac5c59ff01fd338053d110ee42. Change-Id: I920dfa78faae4827db31298f60552e1e49a87eb9 --- osm_mon/collector/collectors/openstack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osm_mon/collector/collectors/openstack.py b/osm_mon/collector/collectors/openstack.py index 395d607..30bab0c 100644 --- a/osm_mon/collector/collectors/openstack.py +++ b/osm_mon/collector/collectors/openstack.py @@ -99,7 +99,8 @@ class OpenstackCollector(BaseVimCollector): for param in vdu['monitoring-param']: metric_name = param['nfvi-metric'] gnocchi_metric_name = METRIC_MAPPINGS[metric_name] - start_date = datetime.datetime.now() - datetime.timedelta(seconds=self.granularity) + delta = 10 * self.granularity + start_date = datetime.datetime.now() - datetime.timedelta(seconds=delta) 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