Class StatsdMetricsExportAutoConfiguration
- java.lang.Object
-
- io.micrometer.spring.autoconfigure.export.statsd.StatsdMetricsExportAutoConfiguration
-
@Configuration @ConditionalOnBean(io.micrometer.core.instrument.Clock.class) @ConditionalOnClass(io.micrometer.statsd.StatsdMeterRegistry.class) @ConditionalOnProperty(prefix="management.metrics.export.statsd", name="enabled", havingValue="true", matchIfMissing=true) @EnableConfigurationProperties(StatsdProperties.class) @Import(StringToDurationConverter.class) public class StatsdMetricsExportAutoConfiguration extends java.lang.Object
Configuration for exporting metrics to a StatsD agent.
-
-
Constructor Summary
Constructors Constructor Description StatsdMetricsExportAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micrometer.statsd.StatsdConfig
statsdConfig(StatsdProperties props)
io.micrometer.statsd.StatsdMeterRegistry
statsdMeterRegistry(io.micrometer.statsd.StatsdConfig config, io.micrometer.core.instrument.Clock clock)
io.micrometer.statsd.StatsdMetrics
statsdMetrics()
-
-
-
Method Detail
-
statsdConfig
@Bean @ConditionalOnMissingBean(io.micrometer.statsd.StatsdConfig.class) public io.micrometer.statsd.StatsdConfig statsdConfig(StatsdProperties props)
-
statsdMeterRegistry
@Bean @ConditionalOnMissingBean public io.micrometer.statsd.StatsdMeterRegistry statsdMeterRegistry(io.micrometer.statsd.StatsdConfig config, io.micrometer.core.instrument.Clock clock)
-
statsdMetrics
@Bean public io.micrometer.statsd.StatsdMetrics statsdMetrics()
-
-