@Configuration @ConditionalOnBean(value={javax.sql.DataSource.class,DataSourcePoolMetadataProvider.class}) @ConditionalOnProperty(value="spring.metrics.jdbc.instrument-datasource", 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 © 2017 Pivotal Software, Inc.. All rights reserved.