Skip to content

Commit b837337

Browse files
committed
CAMEL-22285: platform-http-main - Dev consoles should be registered as management endpoints
1 parent 61af3a7 commit b837337

4 files changed

Lines changed: 20 additions & 14 deletions

File tree

main-micrometer/README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $ mvn camel:run
3030

3131
The statistics from Micrometer can be observed from HTTP at:
3232

33-
http://localhost:8080/q/metrics
33+
http://localhost:8080/observe/metrics
3434

3535
=== Camel CLI
3636

@@ -48,7 +48,7 @@ And then use the CLI to see status:
4848
=== Camel Web Console
4949

5050
This example comes with embedded developer console that is accessible via `http://localhost:8080/q/dev`.
51-
You can also check status of health-check via `http://localhost:8080/q/health`.
51+
You can also check status of health-check via `http://localhost:8080/observe/health`.
5252

5353
=== Help and contributions
5454

main-micrometer/src/main/resources/application.properties

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ camel.main.sourceLocationEnabled=true
2525
# turn on dev console
2626
camel.context.dev-console=true
2727

28-
# enable http server
28+
# enable management and developer web console
2929
camel.server.enabled = true
30-
camel.server.dev-console-enabled = true
31-
camel.server.health-check-enabled = true
30+
camel.management.enabled = true
31+
camel.management.dev-console-enabled = true
32+
camel.management.health-check-enabled = true
3233
# turn on micrometer prometheus on q/metrics
33-
camel.server.metrics-enabled = true
34+
camel.management.metrics-enabled = true
3435

3536
# micrometer configurations
3637
camel.metrics.enabled=true

main/README.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ And then use the CLI to see status:
4949
=== Camel Web Console
5050

5151
This example comes with embedded developer console that is accessible via `http://localhost:8080/q/dev`.
52-
You can also check status of health-check via `http://localhost:8080/q/health`.
53-
You can also access https://jolokia.org/[jolokia] api via `http://localhost:8080/q/jolokia`.
54-
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`.
52+
You can also check status of health-check via `http://localhost:8080/observe/health`.
53+
54+
You can also access https://jolokia.org/[jolokia] api via `http://localhost:8080/observe/jolokia`.
55+
This gives you access to basic JMX operations.
56+
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`.
5557

5658
=== How to configure for Camel Textual Route debugging
5759

main/src/main/resources/application.properties

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@ camel.main.name = MyCoolCamel
2222
# allows source:line precise logging
2323
camel.main.sourceLocationEnabled=true
2424

25-
# enable developer web console
25+
# turn on dev console
26+
camel.context.dev-console=true
27+
28+
# enable management and developer web console
2629
camel.server.enabled = true
27-
camel.context.dev-console = true
28-
camel.server.dev-console-enabled = true
29-
camel.server.health-check-enabled = true
30-
camel.server.jolokia-enabled = true
30+
camel.management.enabled = true
31+
camel.management.dev-console-enabled = true
32+
camel.management.health-check-enabled = true
33+
camel.management.jolokia-enabled = true
3134

3235
# application properties
3336
hi = Hello

0 commit comments

Comments
 (0)