Change-Id: I5d51c26a7a80a407a6f892d542d44420c5832e02
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
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,