Added metric to monitor the connection-pool size.

Moved companion object