Class StackdriverMetricsExportAutoConfiguration


  • @Configuration
    @ConditionalOnBean(io.micrometer.core.instrument.Clock.class)
    @ConditionalOnClass(io.micrometer.stackdriver.StackdriverMeterRegistry.class)
    @ConditionalOnProperty(prefix="management.metrics.export.stackdriver",
                           name="enabled",
                           havingValue="true",
                           matchIfMissing=true)
    @EnableConfigurationProperties(StackdriverProperties.class)
    @Import(StringToDurationConverter.class)
    public class StackdriverMetricsExportAutoConfiguration
    extends java.lang.Object
    Configuration for exporting metrics to Stackdriver.
    Since:
    1.1.0
    • Constructor Detail

      • StackdriverMetricsExportAutoConfiguration

        public StackdriverMetricsExportAutoConfiguration()
    • Method Detail

      • stackdriverConfig

        @Bean
        @ConditionalOnMissingBean
        public io.micrometer.stackdriver.StackdriverConfig stackdriverConfig​(StackdriverProperties props)
      • stackdriverMeterRegistry

        @Bean
        @ConditionalOnMissingBean
        public io.micrometer.stackdriver.StackdriverMeterRegistry stackdriverMeterRegistry​(io.micrometer.stackdriver.StackdriverConfig config,
                                                                                           StackdriverProperties props,
                                                                                           io.micrometer.core.instrument.Clock clock)