From: Benjamin Diaz Date: Wed, 17 Oct 2018 17:44:36 +0000 (-0300) Subject: Adds use of CustomCollector in Prometheus exporter X-Git-Tag: v5.0.0~20 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=4da146638bc3838270fa41c9f9fb91961f726c97;hp=4da146638bc3838270fa41c9f9fb91961f726c97;p=osm%2FMON.git Adds use of CustomCollector in Prometheus exporter Using a CustomCollector gives more control over the collection process, which allows handling the removal of metrics when a NS is deleted. Metrics now have a lifespan of a collection cycle, so metrics of deleted vdus are now not visible in the exporter. It also adds MonCollector class, which allows to abstract collection logic and facilitates testing. Signed-off-by: Benjamin Diaz Change-Id: Idfdb86c1ee9facd07187e6582954ae4cab32a5b4 ---