Class MetricsAutoConfiguration


  • @Configuration
    @ConditionalOnClass(io.micrometer.core.annotation.Timed.class)
    @EnableConfigurationProperties(MetricsProperties.class)
    public class MetricsAutoConfiguration
    extends java.lang.Object
    EnableAutoConfiguration for Micrometer-based metrics.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micrometer.core.instrument.binder.hystrix.HystrixMetricsBinder hystrixMetricsBinder()  
      static io.micrometer.spring.autoconfigure.MeterRegistryPostProcessor meterRegistryPostProcessor​(org.springframework.beans.factory.ObjectProvider<java.util.List<io.micrometer.core.instrument.binder.MeterBinder>> meterBinders, org.springframework.beans.factory.ObjectProvider<java.util.List<io.micrometer.core.instrument.config.MeterFilter>> meterFilters, org.springframework.beans.factory.ObjectProvider<java.util.List<MeterRegistryCustomizer<?>>> meterRegistryCustomizers, org.springframework.beans.factory.ObjectProvider<MetricsProperties> metricsProperties, org.springframework.context.ApplicationContext applicationContext)  
      io.micrometer.core.instrument.Clock micrometerClock()  
      PropertiesMeterFilter propertiesMeterFilter​(MetricsProperties properties)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetricsAutoConfiguration

        public MetricsAutoConfiguration()
    • Method Detail

      • micrometerClock

        @Bean
        @ConditionalOnMissingBean
        public io.micrometer.core.instrument.Clock micrometerClock()
      • meterRegistryPostProcessor

        @Bean
        public static io.micrometer.spring.autoconfigure.MeterRegistryPostProcessor meterRegistryPostProcessor​(org.springframework.beans.factory.ObjectProvider<java.util.List<io.micrometer.core.instrument.binder.MeterBinder>> meterBinders,
                                                                                                               org.springframework.beans.factory.ObjectProvider<java.util.List<io.micrometer.core.instrument.config.MeterFilter>> meterFilters,
                                                                                                               org.springframework.beans.factory.ObjectProvider<java.util.List<MeterRegistryCustomizer<?>>> meterRegistryCustomizers,
                                                                                                               org.springframework.beans.factory.ObjectProvider<MetricsProperties> metricsProperties,
                                                                                                               org.springframework.context.ApplicationContext applicationContext)
      • hystrixMetricsBinder

        @Bean
        @ConditionalOnClass(name="com.netflix.hystrix.strategy.HystrixPlugins")
        @ConditionalOnProperty(value="management.metrics.binders.hystrix.enabled",
                               matchIfMissing=true)
        public io.micrometer.core.instrument.binder.hystrix.HystrixMetricsBinder hystrixMetricsBinder()