Class StatsdMetricsExportAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.export.statsd.StatsdMetricsExportAutoConfiguration
@AutoConfiguration(before={CompositeMeterRegistryAutoConfiguration.class,SimpleMetricsExportAutoConfiguration.class},
after=MetricsAutoConfiguration.class)
@ConditionalOnBean(io.micrometer.core.instrument.Clock.class)
@ConditionalOnClass(io.micrometer.statsd.StatsdMeterRegistry.class)
@ConditionalOnEnabledMetricsExport("statsd")
@EnableConfigurationProperties(StatsdProperties.class)
public class StatsdMetricsExportAutoConfiguration
extends Object
Auto-configuration
for exporting metrics to StatsD.- Since:
- 2.0.0
- Author:
- Jon Schneider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.statsd.StatsdConfig
statsdConfig
(StatsdProperties statsdProperties) io.micrometer.statsd.StatsdMeterRegistry
statsdMeterRegistry
(io.micrometer.statsd.StatsdConfig statsdConfig, io.micrometer.core.instrument.Clock clock)
-
Constructor Details
-
StatsdMetricsExportAutoConfiguration
public StatsdMetricsExportAutoConfiguration()
-
-
Method Details
-
statsdConfig
@Bean @ConditionalOnMissingBean public io.micrometer.statsd.StatsdConfig statsdConfig(StatsdProperties statsdProperties) -
statsdMeterRegistry
@Bean @ConditionalOnMissingBean public io.micrometer.statsd.StatsdMeterRegistry statsdMeterRegistry(io.micrometer.statsd.StatsdConfig statsdConfig, io.micrometer.core.instrument.Clock clock)
-