@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,AtlasExportConfiguration.class,DatadogExportConfiguration.class,GangliaExportConfiguration.class,GraphiteExportConfiguration.class,InfluxExportConfiguration.class,JmxExportConfiguration.class,PrometheusExportConfiguration.class,SimpleExportConfiguration.class}) public class MetricsAutoConfiguration extends Object
Auto-configuration
for Micrometer-based metrics.Constructor and Description |
---|
MetricsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
io.micrometer.core.instrument.composite.CompositeMeterRegistry |
compositeMeterRegistry(org.springframework.beans.factory.ObjectProvider<Collection<MetricsExporter>> exporters) |
MetricsEndpoint |
metricsEndpoint(io.micrometer.core.instrument.MeterRegistry registry) |
@Bean @ConditionalOnMissingBean(value=io.micrometer.core.instrument.MeterRegistry.class) public io.micrometer.core.instrument.composite.CompositeMeterRegistry compositeMeterRegistry(org.springframework.beans.factory.ObjectProvider<Collection<MetricsExporter>> exporters)
@Bean @ConditionalOnBean(value=io.micrometer.core.instrument.MeterRegistry.class) @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public MetricsEndpoint metricsEndpoint(io.micrometer.core.instrument.MeterRegistry registry)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.