Enabling camel-metrics on all your Camel routes is done by org.apache.camel.spi.RoutePolicyFactory, which creates a new RoutePolicy for all your routes. The camel-metrics component offers MetricsRoutePolicyFactory, which can be used in Java or XML DSL: