Package io.prometheus.client.hotspot
Class GarbageCollectorExports
java.lang.Object
io.prometheus.client.Collector
io.prometheus.client.hotspot.GarbageCollectorExports
Exports metrics about JVM garbage collectors.
Example usage:
new GarbageCollectorExports().register();
Example metrics being exported:
jvm_gc_collection_seconds_count{gc="PS1"} 200 jvm_gc_collection_seconds_sum{gc="PS1"} 6.7
-
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
Methods inherited from class io.prometheus.client.Collector
checkMetricLabelName, checkMetricName, doubleToGoString, register, register, sanitizeMetricName
-
Field Details
-
garbageCollectors
-
-
Constructor Details
-
GarbageCollectorExports
public GarbageCollectorExports() -
GarbageCollectorExports
GarbageCollectorExports(List<GarbageCollectorMXBean> garbageCollectors)
-
-
Method Details