@Configuration @ConditionalOnBean(value={javax.sql.DataSource.class,DataSourcePoolMetadataProvider.class}) @ConditionalOnProperty(value="management.metrics.jdbc.instrument", matchIfMissing=true) @EnableConfigurationProperties(value=JdbcMetricsProperties.class) public class DataSourcePoolMetricsConfiguration extends Object
datasources
.Constructor and Description |
---|
DataSourcePoolMetricsConfiguration(io.micrometer.core.instrument.MeterRegistry registry,
Collection<DataSourcePoolMetadataProvider> metadataProviders,
JdbcMetricsProperties jdbcMetricsProperties) |
Modifier and Type | Method and Description |
---|---|
void |
bindDataSourcesToRegistry(Map<String,DataSource> dataSources) |
public DataSourcePoolMetricsConfiguration(io.micrometer.core.instrument.MeterRegistry registry, Collection<DataSourcePoolMetadataProvider> metadataProviders, JdbcMetricsProperties jdbcMetricsProperties)
@Autowired public void bindDataSourcesToRegistry(Map<String,DataSource> dataSources)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.