Class ConnectionPoolMetricsAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.r2dbc.ConnectionPoolMetricsAutoConfiguration
@AutoConfiguration(after={MetricsAutoConfiguration.class,SimpleMetricsExportAutoConfiguration.class,R2dbcAutoConfiguration.class})
@ConditionalOnClass({io.r2dbc.pool.ConnectionPool.class,io.micrometer.core.instrument.MeterRegistry.class})
@ConditionalOnBean({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
.- Since:
- 2.3.0
- Author:
- Tadaya Tsuyukubo, Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bindConnectionPoolsToRegistry
(Map<String, io.r2dbc.spi.ConnectionFactory> connectionFactories, io.micrometer.core.instrument.MeterRegistry registry)
-
Constructor Details
-
ConnectionPoolMetricsAutoConfiguration
public ConnectionPoolMetricsAutoConfiguration()
-
-
Method Details
-
bindConnectionPoolsToRegistry
@Autowired public void bindConnectionPoolsToRegistry(Map<String, io.r2dbc.spi.ConnectionFactory> connectionFactories, io.micrometer.core.instrument.MeterRegistry registry)
-