diff --git a/apm-agent-java/configuration/jmx.md b/apm-agent-java/configuration/jmx.md index ca4b792..7e8d1e0 100644 --- a/apm-agent-java/configuration/jmx.md +++ b/apm-agent-java/configuration/jmx.md @@ -71,3 +71,12 @@ TODO ## Oracle Weblogic TODO + +## Database connection pools +### HikariCP + +Agent `capture_jmx_metrics` value to use: +``` +object_name[com.zaxxer.hikari:type=Pool (poolName)] attribute[IdleConnections] attribute[ActiveConnections] attribute[TotalConnections] attribute[ThreadsAwaitingConnection] +``` +where `poolName` is a name you can set on the HikariConfig using setPoolName("foo"), or the auto-generated name (e.g. HikariPool-1).