aboutsummaryrefslogtreecommitdiffstats
path: root/sources/hv-collector-xnf-simulator
diff options
context:
space:
mode:
authorJakub Dudycz <jakub.dudycz@nokia.com>2019-06-14 15:48:32 +0200
committerJakub Dudycz <jakub.dudycz@nokia.com>2019-06-19 15:36:50 +0200
commit3b5bfc1ab4d2c1e41a6d9a418240d411a71b4ad2 (patch)
tree72b649521adc90da8fc3f6f3f299666692ab0c9e /sources/hv-collector-xnf-simulator
parentbdc928c898af450b1a39a42b465d2ca7fb6dc138 (diff)
Expose Prometheus metrics in Kafka Consumer
Change-Id: I9d0568a5fc296604d7ac7a45b8bbd0289b845938 Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com> Issue-ID: DCAEGEN2-1626
Diffstat (limited to 'sources/hv-collector-xnf-simulator')
-rw-r--r--sources/hv-collector-xnf-simulator/src/main/kotlin/org/onap/dcae/collectors/veshv/simulators/xnf/main.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/hv-collector-xnf-simulator/src/main/kotlin/org/onap/dcae/collectors/veshv/simulators/xnf/main.kt b/sources/hv-collector-xnf-simulator/src/main/kotlin/org/onap/dcae/collectors/veshv/simulators/xnf/main.kt
index 04a0c14a..7a28818c 100644
--- a/sources/hv-collector-xnf-simulator/src/main/kotlin/org/onap/dcae/collectors/veshv/simulators/xnf/main.kt
+++ b/sources/hv-collector-xnf-simulator/src/main/kotlin/org/onap/dcae/collectors/veshv/simulators/xnf/main.kt
@@ -61,7 +61,7 @@ private fun startServers(config: SimulatorConfiguration): ExitCode {
)
val xnfApiServerHandler = XnfApiServer(xnfSimulator, OngoingSimulations())
.start(config.listenAddress)
- .block()
+ .block()!!
logger.info { "Started xNF Simulator API server" }
HealthState.INSTANCE.changeState(HealthDescription.IDLE)