node-mysql2 icon indicating copy to clipboard operation
node-mysql2 copied to clipboard

How can you obtain pool metrics (e.g. all connections, all free connections, all queued connections) ?

Open Templum opened this issue 9 months ago • 2 comments

Hey,

I'm looking for the right way to track those metrics so I can leverage them in Prometheus exports for dashboards and alerts down the road. There was a previous discussion in #1078, but seems like it never concluded.

Hence, I wanted to check the expected way of obtaining those values. Based on the code, they are available, but given that they are _, I'm hesitant about leveraging them that way.

Templum avatar Feb 26 '25 10:02 Templum