node-mysql2
node-mysql2 copied to clipboard
How can you obtain pool metrics (e.g. all connections, all free connections, all queued connections) ?
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.