From 44ebeeb78ca62e3e86dc218723bc417a3c4bd698 Mon Sep 17 00:00:00 2001 From: Benjamin Diaz Date: Sat, 24 Nov 2018 00:05:11 -0300 Subject: [PATCH 1/1] Adds support for vnf-metric in mon-evaluator Change-Id: I81e69761448418625ca4076f6e3d3903c07c9f58 Signed-off-by: Benjamin Diaz --- osm_mon/evaluator/evaluator.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/osm_mon/evaluator/evaluator.py b/osm_mon/evaluator/evaluator.py index 9591946..a672cb2 100644 --- a/osm_mon/evaluator/evaluator.py +++ b/osm_mon/evaluator/evaluator.py @@ -136,8 +136,15 @@ class Evaluator: processes.append(p) p.start() if 'vnf-metric' in vnf_monitoring_param: - log.warning("vnf-metric is not currently supported.") - continue + vnf_metric_name = vnf_monitoring_param['vnf-metric']['vnf-metric-name-ref'] + p = multiprocessing.Process(target=self._evaluate_metric, + args=(nsr_id, + vnf_member_index, + '', + vnf_metric_name, + alarm)) + processes.append(p) + p.start() for process in processes: process.join() -- 2.25.1