@Configuration @ConditionalOnClass(value=com.codahale.metrics.MetricRegistry.class) public class MetricsDropwizardAutoConfiguration extends Object
Auto-configuration
for Dropwizard-based metrics.Constructor and Description |
---|
MetricsDropwizardAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
DropwizardMetricServices |
dropwizardMetricServices(com.codahale.metrics.MetricRegistry metricRegistry) |
MetricReaderPublicMetrics |
dropwizardPublicMetrics(com.codahale.metrics.MetricRegistry metricRegistry) |
com.codahale.metrics.MetricRegistry |
metricRegistry() |
@Bean @ConditionalOnMissingBean public com.codahale.metrics.MetricRegistry metricRegistry()
@Bean @ConditionalOnMissingBean(value={DropwizardMetricServices.class,CounterService.class,GaugeService.class}) public DropwizardMetricServices dropwizardMetricServices(com.codahale.metrics.MetricRegistry metricRegistry)
@Bean public MetricReaderPublicMetrics dropwizardPublicMetrics(com.codahale.metrics.MetricRegistry metricRegistry)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.