Add metrics support for idle jdbc connections
See gh-17504
This commit is contained in:
committed by
Stephane Nicoll
parent
808b373def
commit
9acc02b5cc
@@ -38,6 +38,7 @@ import org.springframework.util.ConcurrentReferenceHashMap;
|
||||
*
|
||||
* @author Jon Schneider
|
||||
* @author Phillip Webb
|
||||
* @author Artsiom Yudovin
|
||||
* @since 2.0.0
|
||||
*/
|
||||
public class DataSourcePoolMetrics implements MeterBinder {
|
||||
@@ -68,6 +69,7 @@ public class DataSourcePoolMetrics implements MeterBinder {
|
||||
bindPoolMetadata(registry, "active", DataSourcePoolMetadata::getActive);
|
||||
bindPoolMetadata(registry, "max", DataSourcePoolMetadata::getMax);
|
||||
bindPoolMetadata(registry, "min", DataSourcePoolMetadata::getMin);
|
||||
bindPoolMetadata(registry, "idle", DataSourcePoolMetadata::getIdle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user