From: Benjamin Diaz Date: Sat, 24 Nov 2018 03:05:11 +0000 (-0300) Subject: Adds support for vnf-metric in mon-evaluator X-Git-Tag: v5.0.0~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F6958%2F1;p=osm%2FMON.git Adds support for vnf-metric in mon-evaluator Change-Id: I81e69761448418625ca4076f6e3d3903c07c9f58 Signed-off-by: Benjamin Diaz --- 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()