@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=io.micrometer.core.annotation.Timed.class) @EnableConfigurationProperties(value=MetricsProperties.class) @AutoConfigureBefore(value=MeterRegistryAutoConfiguration.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(ObjectProvider<io.micrometer.core.instrument.binder.MeterBinder> meterBinders,
ObjectProvider<io.micrometer.core.instrument.config.MeterFilter> meterFilters,
ObjectProvider<MeterRegistryCustomizer<?>> meterRegistryCustomizers,
ObjectProvider<MetricsProperties> metricsProperties,
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(ObjectProvider<io.micrometer.core.instrument.binder.MeterBinder> meterBinders, ObjectProvider<io.micrometer.core.instrument.config.MeterFilter> meterFilters, ObjectProvider<MeterRegistryCustomizer<?>> meterRegistryCustomizers, ObjectProvider<MetricsProperties> metricsProperties, ApplicationContext applicationContext)
@Bean @Order(value=0) public PropertiesMeterFilter propertiesMeterFilter(MetricsProperties properties)