Class MetricExportAutoConfiguration
- java.lang.Object
- org.springframework.boot.actuate.autoconfigure.MetricExportAutoConfiguration
@Configuration @EnableScheduling @ConditionalOnProperty(value="spring.metrics.export.enabled", matchIfMissing=true) @EnableConfigurationProperties public class MetricExportAutoConfiguration extends Object
Auto-configuration
for metrics export.- Since:
- 1.3.0
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
MetricExportAutoConfiguration.MetricExportPropertiesConfiguration
Constructor Summary
Constructors Constructor Description MetricExportAutoConfiguration(MetricExportProperties properties, org.springframework.beans.factory.ObjectProvider<MetricsEndpointMetricReader> endpointReader, org.springframework.beans.factory.ObjectProvider<List<MetricReader>> readers, org.springframework.beans.factory.ObjectProvider<Map<String,GaugeWriter>> writers, org.springframework.beans.factory.ObjectProvider<Map<String,Exporter>> exporters)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.scheduling.annotation.SchedulingConfigurer
metricWritersMetricExporter(MetricExportProperties properties)
Constructor Detail
MetricExportAutoConfiguration
public MetricExportAutoConfiguration(MetricExportProperties properties, org.springframework.beans.factory.ObjectProvider<MetricsEndpointMetricReader> endpointReader, @ExportMetricReader org.springframework.beans.factory.ObjectProvider<List<MetricReader>> readers, @ExportMetricWriter org.springframework.beans.factory.ObjectProvider<Map<String,GaugeWriter>> writers, org.springframework.beans.factory.ObjectProvider<Map<String,Exporter>> exporters)
Method Detail
metricWritersMetricExporter
@Bean @ConditionalOnMissingBean(name="metricWritersMetricExporter") public org.springframework.scheduling.annotation.SchedulingConfigurer metricWritersMetricExporter(MetricExportProperties properties)