Adds use of CustomCollector in Prometheus exporter
[osm/MON.git] / osm_mon / core / message_bus / common_consumer.py
index 0b61e1e..b2677d8 100755 (executable)
@@ -91,6 +91,8 @@ class CommonConsumer:
 
         topics = ['metric_request', 'alarm_request', 'vim_account']
         common_consumer.subscribe(topics)
+        common_consumer.poll()
+        common_consumer.seek_to_end()
 
         log.info("Listening for messages...")
         for message in common_consumer: