@Factory @RequiresMetrics @Requires(property="micronaut.metrics.binders.jdbc.enabled", notEquals="false") public class DataSourcePoolMetricsBinderFactory extends java.lang.Object
Constructor and Description |
---|
DataSourcePoolMetricsBinderFactory() |
Modifier and Type | Method and Description |
---|---|
io.micrometer.core.instrument.binder.MeterBinder |
dataSourceMeterBinder(java.lang.String dataSourceName,
io.micronaut.jdbc.metadata.DataSourcePoolMetadata dataSourcePoolMetadata)
Method to wire beans for each type of datasource.
|
@EachBean(value=io.micronaut.jdbc.metadata.DataSourcePoolMetadata.class) @Requires(beans=io.micronaut.jdbc.metadata.DataSourcePoolMetadata.class) public io.micrometer.core.instrument.binder.MeterBinder dataSourceMeterBinder(@Parameter java.lang.String dataSourceName, io.micronaut.jdbc.metadata.DataSourcePoolMetadata dataSourcePoolMetadata)
dataSourceName
- The parameterized name of the datasourcedataSourcePoolMetadata
- The datasource metadata object to use for the binderDataSourcePoolMetadata