@AutoConfiguration @AutoConfigureBefore(value=AxonAutoConfiguration.class) @ConditionalOnMissingBean(value=MicrometerMetricsAutoConfiguration.class) @ConditionalOnClass(name={"com.codahale.metrics.MetricRegistry","org.axonframework.metrics.GlobalMetricRegistry"}) @EnableConfigurationProperties(value=MetricsProperties.class) public class MetricsAutoConfiguration extends Object
Constructor and Description |
---|
MetricsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static GlobalMetricRegistry |
globalMetricRegistry(com.codahale.metrics.MetricRegistry metricRegistry) |
static com.codahale.metrics.MetricRegistry |
metricRegistry() |
static MetricsConfigurerModule |
metricsConfigurerModule(GlobalMetricRegistry globalMetricRegistry) |
@Bean @ConditionalOnMissingBean(value=com.codahale.metrics.MetricRegistry.class) public static com.codahale.metrics.MetricRegistry metricRegistry()
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=com.codahale.metrics.MetricRegistry.class) public static GlobalMetricRegistry globalMetricRegistry(com.codahale.metrics.MetricRegistry metricRegistry)
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=GlobalMetricRegistry.class) @ConditionalOnProperty(value="axon.metrics.auto-configuration.enabled", matchIfMissing=true) public static MetricsConfigurerModule metricsConfigurerModule(GlobalMetricRegistry globalMetricRegistry)
Copyright © 2010–2024. All rights reserved.