Class 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 Detail

      • StatsdMetricsExportAutoConfiguration

        public StatsdMetricsExportAutoConfiguration()
    • 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()