MicroProfile Health
JVM since0.3.0 Native since0.3.0
Bridging Eclipse MicroProfile Health with Camel health checks
Maven coordinates
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-microprofile-health</artifactId>
</dependency>
Check the User guide for more information about writing Camel Quarkus applications.
Usage
You can register health checks for your applications with the Camel health check API.
By default, classes extending AbstractHealthCheck
are registered as both liveness and readiness checks. For finer control over whether
a check is registered as a liveness or readiness check, you can extend either AbstractCamelMicroProfileLivenessCheck
or AbstractCamelMicroProfileReadinessCheck
.
Any checks provided by your application are automatically discovered and bound to the Camel registry. They will be available via
the Quarkus health endpoints /health/live
and /health/ready
.
You can also provide custom HealthCheckRepository
implementations and these are also automatically discovered and bound to the Camel registry for you.
Refer to the Quarkus health guide for further information.