@Configuration(proxyBeanMethods=false) @AutoConfigureBefore(value=org.springframework.boot.actuate.autoconfigure.metrics.export.stackdriver.StackdriverMetricsExportAutoConfiguration.class) @AutoConfigureAfter(value=org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration.class) @ConditionalOnClass(value=io.micrometer.stackdriver.StackdriverMeterRegistry.class) @ConditionalOnBean(value=io.micrometer.core.instrument.Clock.class) @ConditionalOnEnabledMetricsExport(value="stackdriver") @EnableConfigurationProperties(value={GcpMetricsProperties.class,org.springframework.boot.actuate.autoconfigure.metrics.export.stackdriver.StackdriverProperties.class}) @ConditionalOnProperty(value="spring.cloud.gcp.metrics.enabled", matchIfMissing=true, havingValue="true") public class GcpStackdriverMetricsAutoConfiguration extends Object
Constructor and Description |
---|
GcpStackdriverMetricsAutoConfiguration(GcpMetricsProperties gcpMetricsProperties,
org.springframework.boot.actuate.autoconfigure.metrics.export.stackdriver.StackdriverProperties stackdriverProperties,
GcpProjectIdProvider gcpProjectIdProvider,
com.google.api.gax.core.CredentialsProvider credentialsProvider) |
Modifier and Type | Method and Description |
---|---|
MetricServiceSettings |
metricServiceSettings() |
io.micrometer.stackdriver.StackdriverConfig |
stackdriverConfig() |
io.micrometer.stackdriver.StackdriverMeterRegistry |
stackdriverMeterRegistry(io.micrometer.stackdriver.StackdriverConfig stackdriverConfig,
io.micrometer.core.instrument.Clock clock,
MetricServiceSettings metricServiceSettings) |
public GcpStackdriverMetricsAutoConfiguration(GcpMetricsProperties gcpMetricsProperties, org.springframework.boot.actuate.autoconfigure.metrics.export.stackdriver.StackdriverProperties stackdriverProperties, GcpProjectIdProvider gcpProjectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider) throws IOException
IOException
@Bean @ConditionalOnMissingBean public io.micrometer.stackdriver.StackdriverConfig stackdriverConfig()
@Bean @ConditionalOnMissingBean public MetricServiceSettings metricServiceSettings() throws IOException
IOException
@Bean @ConditionalOnMissingBean public io.micrometer.stackdriver.StackdriverMeterRegistry stackdriverMeterRegistry(io.micrometer.stackdriver.StackdriverConfig stackdriverConfig, io.micrometer.core.instrument.Clock clock, MetricServiceSettings metricServiceSettings)
Copyright © 2021. All rights reserved.