Package nl.nlighten.prometheus.tomcat
Class TomcatGenericExports
- java.lang.Object
-
- io.prometheus.client.Collector
-
- nl.nlighten.prometheus.tomcat.TomcatGenericExports
-
public class TomcatGenericExports extends io.prometheus.client.Collector
Exports Tomcat metrics applicable to most most applications: - http session metrics - request processor metrics - thread pool metricsExample usage:
Example metrics being exported:new TomcatGenericExports(false).register();tomcat_info{version="7.0.61.0",build="Apr 29 2015 14:58:03 UTC",} 1.0 tomcat_session_active_total{context="/foo",host="default",} 877.0 tomcat_session_rejected_total{context="/foo",host="default",} 0.0 tomcat_session_created_total{context="/foo",host="default",} 24428.0 tomcat_session_expired_total{context="/foo",host="default",} 23832.0 tomcat_session_alivetime_seconds_avg{context="/foo",host="default",} 633.0 tomcat_session_alivetime_seconds_max{context="/foo",host="default",} 9883.0 tomcat_requestprocessor_received_bytes{name="http-bio-0.0.0.0-8080",} 0.0 tomcat_requestprocessor_sent_bytes{name="http-bio-0.0.0.0-8080",} 5056098.0 tomcat_requestprocessor_time_seconds{name="http-bio-0.0.0.0-8080",} 127386.0 tomcat_requestprocessor_error_count{name="http-bio-0.0.0.0-8080",} 0.0 tomcat_requestprocessor_request_count{name="http-bio-0.0.0.0-8080",} 33709.0 tomcat_threads_total{pool="http-bio-0.0.0.0-8080",} 10.0 tomcat_threads_active_total{pool="http-bio-0.0.0.0-8080",} 2.0 tomcat_threads_active_max{pool="http-bio-0.0.0.0-8080",} 200.0
-
-
Constructor Summary
Constructors Constructor Description TomcatGenericExports(boolean embedded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<io.prometheus.client.Collector.MetricFamilySamples>collect()
-
-
-
Constructor Detail
-
TomcatGenericExports
public TomcatGenericExports(boolean embedded)
-
-