Class InfluxMetricsExportAutoConfiguration


  • @Configuration
    @ConditionalOnBean(io.micrometer.core.instrument.Clock.class)
    @ConditionalOnClass(io.micrometer.influx.InfluxMeterRegistry.class)
    @ConditionalOnProperty(prefix="management.metrics.export.influx",
                           name="enabled",
                           havingValue="true",
                           matchIfMissing=true)
    @EnableConfigurationProperties(InfluxProperties.class)
    @Import(StringToDurationConverter.class)
    public class InfluxMetricsExportAutoConfiguration
    extends java.lang.Object
    Configuration for exporting metrics to Influx.
    • Constructor Detail

      • InfluxMetricsExportAutoConfiguration

        public InfluxMetricsExportAutoConfiguration()
    • Method Detail

      • influxConfig

        @Bean
        @ConditionalOnMissingBean(io.micrometer.influx.InfluxConfig.class)
        public io.micrometer.influx.InfluxConfig influxConfig​(InfluxProperties props)
      • influxMeterRegistry

        @Bean
        @ConditionalOnMissingBean
        public io.micrometer.influx.InfluxMeterRegistry influxMeterRegistry​(io.micrometer.influx.InfluxConfig config,
                                                                            io.micrometer.core.instrument.Clock clock)