@Configuration @ConditionalOnClass(value=io.micrometer.core.annotation.Timed.class) @EnableConfigurationProperties(value=MetricsProperties.class) @AutoConfigureBefore(value=CompositeMeterRegistryAutoConfiguration.class) public class MetricsAutoConfiguration extends Object
Auto-configuration
for Micrometer-based metrics.Constructor and Description |
---|
MetricsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryPostProcessor |
meterRegistryPostProcessor(org.springframework.beans.factory.ObjectProvider<io.micrometer.core.instrument.binder.MeterBinder> meterBinders,
org.springframework.beans.factory.ObjectProvider<io.micrometer.core.instrument.config.MeterFilter> meterFilters,
org.springframework.beans.factory.ObjectProvider<MeterRegistryCustomizer<?>> meterRegistryCustomizers,
org.springframework.beans.factory.ObjectProvider<MetricsProperties> metricsProperties,
org.springframework.context.ApplicationContext applicationContext) |
io.micrometer.core.instrument.Clock |
micrometerClock() |
PropertiesMeterFilter |
propertiesMeterFilter(MetricsProperties properties) |
@Bean @ConditionalOnMissingBean public io.micrometer.core.instrument.Clock micrometerClock()
@Bean public static org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryPostProcessor meterRegistryPostProcessor(org.springframework.beans.factory.ObjectProvider<io.micrometer.core.instrument.binder.MeterBinder> meterBinders, org.springframework.beans.factory.ObjectProvider<io.micrometer.core.instrument.config.MeterFilter> meterFilters, org.springframework.beans.factory.ObjectProvider<MeterRegistryCustomizer<?>> meterRegistryCustomizers, org.springframework.beans.factory.ObjectProvider<MetricsProperties> metricsProperties, org.springframework.context.ApplicationContext applicationContext)
@Bean @Order(value=0) public PropertiesMeterFilter propertiesMeterFilter(MetricsProperties properties)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.