@Configuration @EnableScheduling @ConditionalOnProperty(value="spring.metrics.export.enabled", matchIfMissing=true) @EnableConfigurationProperties public class MetricExportAutoConfiguration extends Object
Auto-configuration
for metrics export.Modifier and Type | Class and Description |
---|---|
protected static class |
MetricExportAutoConfiguration.MetricExportPropertiesConfiguration |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
org.springframework.scheduling.annotation.SchedulingConfigurer |
metricWritersMetricExporter(MetricExportProperties properties) |
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)
@Bean @ConditionalOnMissingBean(name="metricWritersMetricExporter") public org.springframework.scheduling.annotation.SchedulingConfigurer metricWritersMetricExporter(MetricExportProperties properties)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.