Visitar URL original
camel-spring-boot-examples/actuator-http-metrics at main · apache/camel-spring-boot-examples · GitHub
Skip to content

Latest commit

 

History

History

actuator-http-metrics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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!