With Jooq how can I monitor the HikariCp Connection pool?
Just like for JPA I can use flexy-pool.
But for flexy-pool, we need to provide configuration by extending HickariCpJpaPostgresConfiguration.
But for Jooq unable to find anything.
Metrics I am looking for:
- ConcurrentConnectionRequestCount
- ConcurrectConnection
- ConnectionAcquireMillis
- ConnectionLeaseMillis
Jooq configuration accepts passing connection pool (DataSource object) to it:
So you can proxy your original datasource with any wrapper you want, flexy-pool datasource, you mentioned, also implements DataSource