I don't believe that connection pool metrics are captured out of the box. You can configure them through the UI though. Go to Settings -> Monitoring Technologies -> Add new technology monitoring -> Add JMX/PMI extension. See screenshot:
From there you can use the wizard to find the tomcat instance and then select the connection pool metric.
You can find the document for this feature here: https://www.dynatrace.com/support/help/extend-dynatrace/extensions/jmx-extensions/jmx-extensions/
we added the JMX Db2 plugin and we exposed JMX in our spring boot app. still we are not seeing JDBC pool metrics in dynatrace
Spring config on our app
include: "metrics, info, beans, conditions, health, loggers, mappings"
let me know what else need to be done to see these metrics
A few points to check: