Spring r2dbc + actuator not collecting metrics

Viewed 425

I have set up a Spring boot application using version 2.2.2.RELEASE with both spring-boot-starter-data-r2dbc and spring-boot-actuator-autoconfigure-r2dbc on the classpath. I am however unable to see any r2dbc metrics on the actuator endpoint, even though I'm doing DB queries through the application.

My understanding is that metrics should be auto collected as per ConnectionPoolMetricsAutoConfiguration. I have debugged my code though and this class is never touched by the spring boot initialization. What am I doing wrong?

0 Answers
Related