Class DataSourcePoolMetrics
java.lang.Object
org.springframework.boot.actuate.metrics.jdbc.DataSourcePoolMetrics
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
public class DataSourcePoolMetrics
extends Object
implements io.micrometer.core.instrument.binder.MeterBinder
A
MeterBinder
for a DataSource
.- Since:
- 2.0.0
- Author:
- Jon Schneider, Phillip Webb
-
Constructor Summary
ConstructorDescriptionDataSourcePoolMetrics
(DataSource dataSource, Collection<DataSourcePoolMetadataProvider> metadataProviders, String dataSourceName, Iterable<io.micrometer.core.instrument.Tag> tags) DataSourcePoolMetrics
(DataSource dataSource, DataSourcePoolMetadataProvider metadataProvider, String name, Iterable<io.micrometer.core.instrument.Tag> tags) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindTo
(io.micrometer.core.instrument.MeterRegistry registry)
-
Constructor Details
-
DataSourcePoolMetrics
public DataSourcePoolMetrics(DataSource dataSource, Collection<DataSourcePoolMetadataProvider> metadataProviders, String dataSourceName, Iterable<io.micrometer.core.instrument.Tag> tags) -
DataSourcePoolMetrics
public DataSourcePoolMetrics(DataSource dataSource, DataSourcePoolMetadataProvider metadataProvider, String name, Iterable<io.micrometer.core.instrument.Tag> tags)
-
-
Method Details
-
bindTo
public void bindTo(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
bindTo
in interfaceio.micrometer.core.instrument.binder.MeterBinder
-