@Configuration(proxyBeanMethods=false) @AutoConfigureAfter(value={MetricsAutoConfiguration.class,SimpleMetricsExportAutoConfiguration.class,R2dbcAutoConfiguration.class}) @ConditionalOnClass(value={io.r2dbc.pool.ConnectionPool.class,io.micrometer.core.instrument.MeterRegistry.class}) @ConditionalOnBean(value={io.r2dbc.spi.ConnectionFactory.class,io.micrometer.core.instrument.MeterRegistry.class}) public class ConnectionPoolMetricsAutoConfiguration extends Object
Auto-configuration
for metrics on all available
R2DBC connection factories
.Constructor and Description |
---|
ConnectionPoolMetricsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
bindConnectionPoolsToRegistry(Map<String,io.r2dbc.spi.ConnectionFactory> connectionFactories,
io.micrometer.core.instrument.MeterRegistry registry) |
public ConnectionPoolMetricsAutoConfiguration()
@Autowired public void bindConnectionPoolsToRegistry(Map<String,io.r2dbc.spi.ConnectionFactory> connectionFactories, io.micrometer.core.instrument.MeterRegistry registry)