public class TomcatJdbcPoolExports extends io.prometheus.client.Collector
Example usage:
new TomcatJdbcPoolExports().register();
Example metrics being exported:
tomcat_jdbc_connections_max{context="/foo",pool="jdbc/mypool"} 20.0
tomcat_jdbc_connections_active_total{context="/foo",pool="jdbc/mypool"} 2.0
tomcat_jdbc_connections_idle_total{context="/foo",pool="jdbc/mypool"} 6.0
tomcat_jdbc_connections_total{context="/foo",pool="jdbc/mypool"} 8.0
tomcat_jdbc_connections_threadswaiting_total{context="/foo",pool="jdbc/mypool"} 0.0
* | Constructor and Description |
|---|
TomcatJdbcPoolExports() |
| Modifier and Type | Method and Description |
|---|---|
List<io.prometheus.client.Collector.MetricFamilySamples> |
collect() |
static boolean |
isTomcatJdbcUsed() |
public TomcatJdbcPoolExports()
public List<io.prometheus.client.Collector.MetricFamilySamples> collect()
collect in class io.prometheus.client.Collectorpublic static boolean isTomcatJdbcUsed()
Copyright © 2019. All rights reserved.