Package io.prometheus.client.hotspot
Class ThreadExports
java.lang.Object
io.prometheus.client.Collector
io.prometheus.client.hotspot.ThreadExports
Exports metrics about JVM thread areas.
Example usage:
new ThreadExports().register();
Example metrics being exported:
jvm_threads_current{} 300 jvm_threads_daemon{} 200 jvm_threads_peak{} 410 jvm_threads_started_total{} 1200
-
Nested Class Summary
Nested classes/interfaces inherited from class io.prometheus.client.Collector
Collector.Describable, Collector.MetricFamilySamples, Collector.Type
-
Field Summary
FieldsFields inherited from class io.prometheus.client.Collector
MILLISECONDS_PER_SECOND, NANOSECONDS_PER_SECOND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addThreadMetrics
(List<Collector.MetricFamilySamples> sampleFamilies) collect()
Return all of the metrics of this Collector.private Map
<Thread.State, Integer> private static double
nullSafeArrayLength
(long[] array) Methods inherited from class io.prometheus.client.Collector
checkMetricLabelName, checkMetricName, doubleToGoString, register, register, sanitizeMetricName
-
Field Details
-
threadBean
-
-
Constructor Details
-
ThreadExports
public ThreadExports() -
ThreadExports
-
-
Method Details