This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new b8373372 CAMEL-22285: platform-http-main - Dev consoles should be 
registered as management endpoints
b8373372 is described below

commit b8373372d2e284c3ccdd7a067364e7f3dda18426
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jul 31 12:30:45 2025 +0200

    CAMEL-22285: platform-http-main - Dev consoles should be registered as 
management endpoints
---
 main-micrometer/README.adoc                               |  4 ++--
 main-micrometer/src/main/resources/application.properties |  9 +++++----
 main/README.adoc                                          |  8 +++++---
 main/src/main/resources/application.properties            | 13 ++++++++-----
 4 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/main-micrometer/README.adoc b/main-micrometer/README.adoc
index cc85eff0..5171afc1 100644
--- a/main-micrometer/README.adoc
+++ b/main-micrometer/README.adoc
@@ -30,7 +30,7 @@ $ mvn camel:run
 
 The statistics from Micrometer can be observed from HTTP at:
 
-    http://localhost:8080/q/metrics
+    http://localhost:8080/observe/metrics
 
 === Camel CLI
 
@@ -48,7 +48,7 @@ And then use the CLI to see status:
 === Camel Web Console
 
 This example comes with embedded developer console that is accessible via 
`http://localhost:8080/q/dev`.
-You can also check status of health-check via `http://localhost:8080/q/health`.
+You can also check status of health-check via 
`http://localhost:8080/observe/health`.
 
 === Help and contributions
 
diff --git a/main-micrometer/src/main/resources/application.properties 
b/main-micrometer/src/main/resources/application.properties
index 185741fd..54dcbf18 100644
--- a/main-micrometer/src/main/resources/application.properties
+++ b/main-micrometer/src/main/resources/application.properties
@@ -25,12 +25,13 @@ camel.main.sourceLocationEnabled=true
 # turn on dev console
 camel.context.dev-console=true
 
-# enable http server
+# enable management and developer web console
 camel.server.enabled = true
-camel.server.dev-console-enabled = true
-camel.server.health-check-enabled = true
+camel.management.enabled = true
+camel.management.dev-console-enabled = true
+camel.management.health-check-enabled = true
 # turn on micrometer prometheus on q/metrics
-camel.server.metrics-enabled = true
+camel.management.metrics-enabled = true
 
 # micrometer configurations
 camel.metrics.enabled=true
diff --git a/main/README.adoc b/main/README.adoc
index 12efe460..f263fb8a 100644
--- a/main/README.adoc
+++ b/main/README.adoc
@@ -49,9 +49,11 @@ And then use the CLI to see status:
 === Camel Web Console
 
 This example comes with embedded developer console that is accessible via 
`http://localhost:8080/q/dev`.
-You can also check status of health-check via `http://localhost:8080/q/health`.
-You can also access https://jolokia.org/[jolokia] api via 
`http://localhost:8080/q/jolokia`.
-This gives you access to basic JMX operations. For example, to query 
https://docs.oracle.com/javase/8/docs/api/java/lang/management/MemoryMXBean.html[MemoryMBean],
 use 
`http://localhost:8080/q/jolokia/read/java.lang:type=Memory/HeapMemoryUsage/used`.
+You can also check status of health-check via 
`http://localhost:8080/observe/health`.
+
+You can also access https://jolokia.org/[jolokia] api via 
`http://localhost:8080/observe/jolokia`.
+This gives you access to basic JMX operations.
+For example, to query 
https://docs.oracle.com/javase/8/docs/api/java/lang/management/MemoryMXBean.html[MemoryMBean],
 use 
`http://localhost:8080/q/jolokia/read/java.lang:type=Memory/HeapMemoryUsage/used`.
 
 === How to configure for Camel Textual Route debugging
 
diff --git a/main/src/main/resources/application.properties 
b/main/src/main/resources/application.properties
index befa5da8..7e1814b6 100644
--- a/main/src/main/resources/application.properties
+++ b/main/src/main/resources/application.properties
@@ -22,12 +22,15 @@ camel.main.name = MyCoolCamel
 # allows source:line precise logging
 camel.main.sourceLocationEnabled=true
 
-# enable developer web console
+# turn on dev console
+camel.context.dev-console=true
+
+# enable management and developer web console
 camel.server.enabled = true
-camel.context.dev-console = true
-camel.server.dev-console-enabled = true
-camel.server.health-check-enabled = true
-camel.server.jolokia-enabled = true
+camel.management.enabled = true
+camel.management.dev-console-enabled = true
+camel.management.health-check-enabled = true
+camel.management.jolokia-enabled = true
 
 # application properties
 hi = Hello

Reply via email to