Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.19 KB

File metadata and controls

44 lines (30 loc) · 1.19 KB

Camel with Actuator - Mappings, Metrics and Shutdown example

This example shows how you can query some of Spring Boot Actuator options from your Camel routes.

How to run

mvn compile spring-boot:run

Actuator routes

You need to enable the HTTP routes on Actuator to be able to use them. For example, in this example we have to expose the metrics, mappings and shutdown routes.

management.endpoints.web.exposure.include=mappings,metrics,shutdown

You can see other functionalities and more details in Actuator’s documentation.

Shutdown

Shutdown should be handled with care for security reasons. You will need to explicitly enable that endpoint for it to be usable.

management.endpoint.shutdown.enabled=true

Help and contributions

If you hit any problem using Camel or have some feedback, then please let us know.

We also love contributors, so get involved :-)

The Camel riders!