You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/09/18 15:53:37 UTC
[camel-spring-boot-examples] 14/40: health check
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git
commit d1607fd9050f2857279768eaea6ba70c3dbb48e5
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Jun 9 07:50:56 2020 +0200
health check
---
camel-example-spring-boot-health-checks/pom.xml | 2 +-
.../src/main/resources/application.properties | 11 ++++++++---
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/camel-example-spring-boot-health-checks/pom.xml b/camel-example-spring-boot-health-checks/pom.xml
index 13bc89e..8cf97f3 100644
--- a/camel-example-spring-boot-health-checks/pom.xml
+++ b/camel-example-spring-boot-health-checks/pom.xml
@@ -70,7 +70,7 @@
<!-- Camel -->
<dependency>
<groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-core-starter</artifactId>
+ <artifactId>camel-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
diff --git a/camel-example-spring-boot-health-checks/src/main/resources/application.properties b/camel-example-spring-boot-health-checks/src/main/resources/application.properties
index 9077b44..c94d8af 100644
--- a/camel-example-spring-boot-health-checks/src/main/resources/application.properties
+++ b/camel-example-spring-boot-health-checks/src/main/resources/application.properties
@@ -29,11 +29,18 @@ management.endpoints.web.exposure.include=info,health
# show verbose health details (/actuator/health) so you can see Camel information also
management.endpoint.health.show-details=always
-camel.springboot.name = SampleHealthChecks
+# to turn off Camel info in (/actuator/info)
+management.info.camel.enabled=true
+management.info.camel.verbose=true
+
+camel.springboot.name = MyCamel
# enable JMX which allows to also control health check
camel.springboot.jmx-enabled = true
+# properties used in the route
+myPeriod = 10s
+
# enable supervised route controller which will startup routes in safe manner
camel.springboot.route-controller-supervise-enabled = true
@@ -81,5 +88,3 @@ camel.health.config[netty].failure-threshold = 10
###camel.health.config[*].interval = 10s
###camel.health.config[*].failure-threshold = 5
-# properties used in the route
-myPeriod = 10s