Package io.prometheus.client.hotspot
Class ThreadExports
- java.lang.Object
-
- io.prometheus.client.Collector
-
- io.prometheus.client.hotspot.ThreadExports
-
public class ThreadExports extends io.prometheus.client.Collector
Exports metrics about JVM thread areas.Example usage:
Example metrics being exported:new ThreadExports().register();jvm_threads_current{} 300 jvm_threads_daemon{} 200 jvm_threads_peak{} 410 jvm_threads_started_total{} 1200
-
-
Constructor Summary
Constructors Constructor Description ThreadExports()ThreadExports(ThreadMXBean threadBean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<io.prometheus.client.Collector.MetricFamilySamples>collect()
-
-
-
Constructor Detail
-
ThreadExports
public ThreadExports()
-
ThreadExports
public ThreadExports(ThreadMXBean threadBean)
-
-