Polish "Add metrics support for idle jdbc connections"
See gh-17504
This commit is contained in:
@@ -38,7 +38,6 @@ import org.springframework.util.ConcurrentReferenceHashMap;
|
||||
*
|
||||
* @author Jon Schneider
|
||||
* @author Phillip Webb
|
||||
* @author Artsiom Yudovin
|
||||
* @since 2.0.0
|
||||
*/
|
||||
public class DataSourcePoolMetrics implements MeterBinder {
|
||||
@@ -67,9 +66,9 @@ public class DataSourcePoolMetrics implements MeterBinder {
|
||||
public void bindTo(MeterRegistry registry) {
|
||||
if (this.metadataProvider.getDataSourcePoolMetadata(this.dataSource) != null) {
|
||||
bindPoolMetadata(registry, "active", DataSourcePoolMetadata::getActive);
|
||||
bindPoolMetadata(registry, "idle", DataSourcePoolMetadata::getIdle);
|
||||
bindPoolMetadata(registry, "max", DataSourcePoolMetadata::getMax);
|
||||
bindPoolMetadata(registry, "min", DataSourcePoolMetadata::getMin);
|
||||
bindPoolMetadata(registry, "idle", DataSourcePoolMetadata::getIdle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user