@Configuration @ConditionalOnClass(value=io.micrometer.core.annotation.Timed.class) @EnableConfigurationProperties(value=MetricsProperties.class) @Import(value={org.springframework.boot.actuate.autoconfigure.metrics.MeterBindersConfiguration.class,WebMvcMetricsConfiguration.class,WebFluxMetricsConfiguration.class,RestTemplateMetricsConfiguration.class,CacheMetricsConfiguration.class,DataSourcePoolMetricsConfiguration.class,RabbitMetricsConfiguration.class,org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistriesConfiguration.class,CompositeMeterRegistryConfiguration.class}) @AutoConfigureAfter(value={CacheAutoConfiguration.class,DataSourceAutoConfiguration.class,RabbitAutoConfiguration.class,RestTemplateAutoConfiguration.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<Collection<io.micrometer.core.instrument.binder.MeterBinder>> binders,
org.springframework.beans.factory.ObjectProvider<Collection<io.micrometer.core.instrument.config.MeterFilter>> filters,
org.springframework.beans.factory.ObjectProvider<Collection<MeterRegistryCustomizer<?>>> customizers,
MetricsProperties properties) |
MetricsEndpoint |
metricsEndpoint(io.micrometer.core.instrument.MeterRegistry registry) |
io.micrometer.core.instrument.Clock |
micrometerClock() |
@Bean public static org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryPostProcessor meterRegistryPostProcessor(org.springframework.beans.factory.ObjectProvider<Collection<io.micrometer.core.instrument.binder.MeterBinder>> binders, org.springframework.beans.factory.ObjectProvider<Collection<io.micrometer.core.instrument.config.MeterFilter>> filters, org.springframework.beans.factory.ObjectProvider<Collection<MeterRegistryCustomizer<?>>> customizers, MetricsProperties properties)
@Bean @ConditionalOnBean(value=io.micrometer.core.instrument.MeterRegistry.class) @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public MetricsEndpoint metricsEndpoint(io.micrometer.core.instrument.MeterRegistry registry)
@Bean @ConditionalOnMissingBean public io.micrometer.core.instrument.Clock micrometerClock()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.