diff --git a/kafkakewl-common/src/main/kotlin/com/mwam/kafkakewl/common/plugins/Configure.kt b/kafkakewl-common/src/main/kotlin/com/mwam/kafkakewl/common/plugins/Configure.kt index 45997f2..d6ce46b 100644 --- a/kafkakewl-common/src/main/kotlin/com/mwam/kafkakewl/common/plugins/Configure.kt +++ b/kafkakewl-common/src/main/kotlin/com/mwam/kafkakewl/common/plugins/Configure.kt @@ -46,7 +46,7 @@ fun Application.configureMonitoring() { fun Application.configureHealthCheck(name: String, isHealth: () -> Boolean) { routing { - get("/$name", { + get(name, { hidden = true }) { if (isHealth()) { diff --git a/kafkakewl-deploy/src/main/kotlin/com/mwam/kafkakewl/deploy/Application.kt b/kafkakewl-deploy/src/main/kotlin/com/mwam/kafkakewl/deploy/Application.kt index a3cea1d..e4cabcb 100644 --- a/kafkakewl-deploy/src/main/kotlin/com/mwam/kafkakewl/deploy/Application.kt +++ b/kafkakewl-deploy/src/main/kotlin/com/mwam/kafkakewl/deploy/Application.kt @@ -46,6 +46,6 @@ fun Application.module(config: Config) { configureRouting() - configureHealthyHealthCheck("live") - configureHealthyHealthCheck("ready") + configureHealthyHealthCheck("/health/live") + configureHealthyHealthCheck("/health/ready") } diff --git a/kafkakewl-metrics/src/main/kotlin/com/mwam/kafkakewl/metrics/Application.kt b/kafkakewl-metrics/src/main/kotlin/com/mwam/kafkakewl/metrics/Application.kt index 0f29d81..7b41221 100644 --- a/kafkakewl-metrics/src/main/kotlin/com/mwam/kafkakewl/metrics/Application.kt +++ b/kafkakewl-metrics/src/main/kotlin/com/mwam/kafkakewl/metrics/Application.kt @@ -49,6 +49,6 @@ fun Application.module(config: Config) { configureRouting() - configureHealthyHealthCheck("live") - configureHealthyHealthCheck("ready") + configureHealthyHealthCheck("/health/live") + configureHealthyHealthCheck("/health/ready") }