@@ -0,0 +1,954 @@
+package org.axonframework.boot.autoconfig;%0A%0Aimport com.codahale.metrics.MetricRegistry;%0Aimport org.axonframework.metrics.GlobalMetricRegistry;%0Aimport org.springframework.boot.autoconfigure.AutoConfigureAfter;%0Aimport org.springframework.boot.autoconfigure.AutoConfigureBefore;%0Aimport org.springframework.boot.autoconfigure.condition.ConditionalOnBean;%0Aimport org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0A%0A@Configuration%0A//@AutoConfigureAfter(RoutingStrategyAutoConfiguration.class)%0A//@AutoConfigureBefore(AxonAutoConfiguration.class)%0Apublic class MetricsAutoConfiguration %7B%0A%0A    @Bean%0A    @ConditionalOnMissingBean%0A    @ConditionalOnBean(MetricRegistry.class)%0A    public GlobalMetricRegistry globalMetricRegistry(MetricRegistry metricRegistry) %7B%0A        return new GlobalMetricRegistry(metricRegistry);%0A    %7D%0A%0A%7D%0A

Introduce a Metrics auto configuration file