skunk icon indicating copy to clipboard operation
skunk copied to clipboard

[Proposal] Track connection pool metrics via jmx

Open Daenyth opened this issue 5 years ago • 0 comments

I think a blocker for using Skunk in production is the ability to track hikari-equivalent metrics.

Specifically, hikari exposes these

  • Idle Connection count
  • Active Connections (in use)
  • Total Connections
  • The number of threads waiting for a connection

They may not exactly translate to the nonblocking api (especially the 'number of threads waiting', but getting something near parity would be massively helpful.

As a bonus, LISTEN-related metrics may be useful too - number of currently active LISTEN streams could be useful to track also.

Some conversation for context: https://gitter.im/skunk-pg/Lobby?at=5f31708aa4768b68568515af

Daenyth avatar Aug 10 '20 16:08 Daenyth