I'm trying to create a Custom JMX Measure that will capture the number of free connections in all database pools in our Glassfish servers.
I can generalize the measure by adding wildcards to the metric collection keys, but I can't seem to find a way to split the results by each pool. Each server usually has more than one connection pool configured, and we need to split the results to see which pool the metric refers to.
Has anyone been able to do that without creating individual measures for each pool?
In the example above, I need to capture metrics for all pools in that server: pgCivelPool, pgCivelROPool, and pgSecurityPool.
Answer by Arturo R. ·
I guess you will have to create a JMX measure for each pool, if you want specific metrics (ex. use them for alerting)
If you hust want to have or build a dashboard, you have them reported under the DB dashboard (DB and conn pool.
Sorry, i didn't found a way to split one measure by pool...
Different time in log files 1 Answer
How to get Method Execution Time 3 Answers