Adds MON Prometheus exporter
Adds a new MON component called mon-exporter, which collects
vdu infra metrics and exposes them through a webservice
by using prometheus_client. This webservice follows the Prometheus
exporter format so it can be integrated as a target so that
it polls metrics from there.
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Iaf2073879d884d0597aa8341f7b6fbbbc3d86e7e
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 6f7a829..5e32f9e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -45,6 +45,6 @@
ENV OSMMON_LOG_LEVEL INFO
ENV OSMMON_KAFKA_LOG_LEVEL INFO
-EXPOSE 8662
+EXPOSE 8662 8000
CMD /bin/bash mon/docker/scripts/runInstall.sh
diff --git a/docker/scripts/runInstall.sh b/docker/scripts/runInstall.sh
index a5231ba..ccfc2f3 100755
--- a/docker/scripts/runInstall.sh
+++ b/docker/scripts/runInstall.sh
@@ -22,5 +22,6 @@
##
/bin/bash /mon/osm_mon/plugins/vRealiseOps/vROPs_Webservice/install.sh
python3 /mon/osm_mon/plugins/OpenStack/Aodh/notifier.py &
-python3 /mon/osm_mon/core/message_bus/common_consumer.py
+python3 /mon/osm_mon/core/message_bus/common_consumer.py &
+osm-mon-exporter