@AutoConfiguration @AutoConfigureAfter(name={"org.springframework.boot.actuate.autoconfigure.metrics.CompositeMeterRegistryAutoConfiguration","org.springframework.boot.actuate.autoconfigure.metrics.export.simple.SimpleMetricsExportAutoConfiguration"}) @AutoConfigureBefore(value={AxonAutoConfiguration.class,MetricsAutoConfiguration.class}) @ConditionalOnClass(name={"io.micrometer.core.instrument.MeterRegistry","org.axonframework.micrometer.GlobalMetricRegistry"}) @EnableConfigurationProperties(value=MetricsProperties.class) public class MicrometerMetricsAutoConfiguration extends Object
Constructor and Description |
---|
MicrometerMetricsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static GlobalMetricRegistry |
globalMetricRegistry(io.micrometer.core.instrument.MeterRegistry meterRegistry) |
static io.micrometer.core.instrument.MeterRegistry |
meterRegistry() |
static MetricsConfigurerModule |
metricsConfigurerModule(GlobalMetricRegistry globalMetricRegistry,
MetricsProperties metricsProperties) |
@Bean @ConditionalOnMissingBean(value=io.micrometer.core.instrument.MeterRegistry.class) public static io.micrometer.core.instrument.MeterRegistry meterRegistry()
@Bean @ConditionalOnMissingBean(value=GlobalMetricRegistry.class) @ConditionalOnBean(value=io.micrometer.core.instrument.MeterRegistry.class) public static GlobalMetricRegistry globalMetricRegistry(io.micrometer.core.instrument.MeterRegistry meterRegistry)
@Bean @ConditionalOnMissingBean(value=MetricsConfigurerModule.class) @ConditionalOnBean(value=GlobalMetricRegistry.class) @ConditionalOnProperty(value="axon.metrics.auto-configuration.enabled", matchIfMissing=true) public static MetricsConfigurerModule metricsConfigurerModule(GlobalMetricRegistry globalMetricRegistry, MetricsProperties metricsProperties)
Copyright © 2010–2024. All rights reserved.