Skip to content

Instantly share code, notes, and snippets.

@davsclaus
Created March 20, 2018 14:25
Show Gist options
  • Save davsclaus/5b9cc17ea651ae78356777da78351468 to your computer and use it in GitHub Desktop.
Save davsclaus/5b9cc17ea651ae78356777da78351468 to your computer and use it in GitHub Desktop.
camel health and info in Spring Boot 2
davsclaus:/Users/davsclaus/$ http http://localhost:8080/actuator/health
HTTP/1.1 200
Content-Type: application/vnd.spring-boot.actuator.v2+json;charset=UTF-8
Date: Tue, 20 Mar 2018 14:21:54 GMT
Transfer-Encoding: chunked
{
"details": {
"camel": {
"details": {
"camel.uptime": "1 minute",
"camel.uptimeMillis": 80550,
"contextStatus": "Started",
"name": "MyCamel",
"version": "2.22.0-SNAPSHOT"
},
"status": "UP"
},
"diskSpace": {
"details": {
"free": 243575758848,
"threshold": 10485760,
"total": 499963170816
},
"status": "UP"
}
},
"status": "UP"
}
davsclaus:/Users/davsclaus/$ http http://localhost:8080/actuator/info
HTTP/1.1 200
Content-Type: application/vnd.spring-boot.actuator.v2+json;charset=UTF-8
Date: Tue, 20 Mar 2018 14:21:57 GMT
Transfer-Encoding: chunked
{
"camel.name": "MyCamel",
"camel.status": "Started",
"camel.uptime": "1 minute",
"camel.uptimeMillis": 84036,
"camel.version": "2.22.0-SNAPSHOT"
}
davsclaus:/Users/davsclaus/$
@davsclaus
Copy link
Author

By default /actuator/health just shows UP or DOWN

To see more details you need to turn this on with:
management.endpoint.health.show-details=always

On the other hand the /actuator/info is enabled by default, and we let Camel show basic details about itself, as shown above.
You can turn this off with:
management.info.camel.enabled=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment