@Configuration @AutoConfigureAfter(value={MetricsAutoConfiguration.class,DataSourceAutoConfiguration.class,SimpleMetricsExportAutoConfiguration.class}) @ConditionalOnBean(value={javax.sql.DataSource.class,DataSourcePoolMetadataProvider.class,io.micrometer.core.instrument.MeterRegistry.class}) public class DataSourcePoolMetricsAutoConfiguration extends Object
Auto-configuration
for metrics on all available
datasources
.Constructor and Description |
---|
DataSourcePoolMetricsAutoConfiguration(io.micrometer.core.instrument.MeterRegistry registry,
Collection<DataSourcePoolMetadataProvider> metadataProviders) |
Modifier and Type | Method and Description |
---|---|
void |
bindDataSourcesToRegistry(Map<String,DataSource> dataSources) |
public DataSourcePoolMetricsAutoConfiguration(io.micrometer.core.instrument.MeterRegistry registry, Collection<DataSourcePoolMetadataProvider> metadataProviders)
@Autowired public void bindDataSourcesToRegistry(Map<String,DataSource> dataSources)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.