public class JbossJdbcPoolExports extends io.prometheus.client.Collector
Example usage:
new JbossJdbcPoolExports().register();
Example metrics being exported:
jboss_jdbc_connections_total{pool="ExampleDS",} 10.0
jboss_jdbc_connections_threadswaiting_total{pool="ExampleDS",} 0.0
jboss_jdbc_connections_idle_total{pool="ExampleDS",} 8.0
jboss_jdbc_connections_active_total{pool="ExampleDS",} 2.0
jboss_jdbc_xacommit_total{pool="ExampleDS",} 9837.0
jboss_jdbc_xarollback_total{pool="ExampleDS",} 7.0
jboss_jdbc_xarecover_total{pool="ExampleDS",} 0.0
jboss_jdbc_preparedstatementcache_size_total{pool="ExampleDS",} 100.0
jboss_jdbc_preparedstatementcache_miss_total{pool="ExampleDS",} 0.0
jboss_jdbc_preparedstatementcache_hit_total{pool="ExampleDS",} 94837.0
Note that you need to enable datasource statistics to see anything
| Constructor and Description |
|---|
JbossJdbcPoolExports() |
| Modifier and Type | Method and Description |
|---|---|
List<io.prometheus.client.Collector.MetricFamilySamples> |
collect() |
public JbossJdbcPoolExports()
Copyright © 2017. All Rights Reserved.