From 3df27bee5db1caad73c0cd0cd8da0cc27bd7c892 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Sat, 6 Feb 2021 22:39:17 -0500 Subject: [PATCH] problem: unclear when monitoring is enabled and how to access it --- .../kotlin/io/emeraldpay/dshackle/monitoring/MonitoringSetup.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/monitoring/MonitoringSetup.kt b/src/main/kotlin/io/emeraldpay/dshackle/monitoring/MonitoringSetup.kt index ead272d4..293b4d2a 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/monitoring/MonitoringSetup.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/monitoring/MonitoringSetup.kt @@ -57,6 +57,7 @@ class MonitoringSetup( // use standard JVM server with a single thread blocking processing // prometheus is a single thread periodic call, no reason to setup anything complex try { + log.info("Run Prometheus metrics on ${monitoringConfig.prometheus.host}:${monitoringConfig.prometheus.port}${monitoringConfig.prometheus.path}") val server = HttpServer.create(InetSocketAddress(monitoringConfig.prometheus.host, monitoringConfig.prometheus.port), 0); server.createContext(monitoringConfig.prometheus.path) { httpExchange -> val response = prometheusRegistry.scrape()