@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,
ObjectProvider<MetricsEndpointMetricReader> endpointReaderProvider,
ObjectProvider<List<MetricReader>> readersProvider,
ObjectProvider<Map<String,GaugeWriter>> writersProvider,
ObjectProvider<Map<String,Exporter>> exportersProvider) |
Modifier and Type | Method and Description |
---|---|
SchedulingConfigurer |
metricWritersMetricExporter() |
StatsdMetricWriter |
statsdMetricWriter() |
public MetricExportAutoConfiguration(MetricExportProperties properties, ObjectProvider<MetricsEndpointMetricReader> endpointReaderProvider, @ExportMetricReader ObjectProvider<List<MetricReader>> readersProvider, @ExportMetricWriter ObjectProvider<Map<String,GaugeWriter>> writersProvider, ObjectProvider<Map<String,Exporter>> exportersProvider)
@Bean @ConditionalOnMissingBean(name="metricWritersMetricExporter") public SchedulingConfigurer metricWritersMetricExporter()
@Bean @ExportMetricWriter @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.metrics.export.statsd", name="host") public StatsdMetricWriter statsdMetricWriter()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.