Package io.prometheus.client.hotspot
Class GarbageCollectorExports
- java.lang.Object
-
- io.prometheus.client.Collector
-
- io.prometheus.client.hotspot.GarbageCollectorExports
-
public class GarbageCollectorExports extends Collector
Exports metrics about JVM garbage collectors.Example usage:
new GarbageCollectorExports().register();
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
Fields Modifier and Type Field Description private java.util.List<java.lang.management.GarbageCollectorMXBean>
garbageCollectors
-
Fields inherited from class io.prometheus.client.Collector
MILLISECONDS_PER_SECOND, NANOSECONDS_PER_SECOND
-
-
Constructor Summary
Constructors Constructor Description GarbageCollectorExports()
GarbageCollectorExports(java.util.List<java.lang.management.GarbageCollectorMXBean> garbageCollectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Collector.MetricFamilySamples>
collect()
Return all of the metrics of this Collector.-
Methods inherited from class io.prometheus.client.Collector
checkMetricLabelName, checkMetricName, doubleToGoString, register, register, sanitizeMetricName
-
-
-
-
Method Detail
-
collect
public java.util.List<Collector.MetricFamilySamples> collect()
Description copied from class:Collector
Return all of the metrics of this Collector.
-
-