Package io.prometheus.client.hotspot
Class ClassLoadingExports
- java.lang.Object
-
- io.prometheus.client.Collector
-
- io.prometheus.client.hotspot.ClassLoadingExports
-
public class ClassLoadingExports extends Collector
Exports metrics about JVM classloading.Example usage:
new ClassLoadingExports().register();
jvm_classes_loaded{} 1000 jvm_classes_loaded_total{} 2000 jvm_classes_unloaded_total{} 500
-
-
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.lang.management.ClassLoadingMXBean
clBean
-
Fields inherited from class io.prometheus.client.Collector
MILLISECONDS_PER_SECOND, NANOSECONDS_PER_SECOND
-
-
Constructor Summary
Constructors Constructor Description ClassLoadingExports()
ClassLoadingExports(java.lang.management.ClassLoadingMXBean clBean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addClassLoadingMetrics(java.util.List<Collector.MetricFamilySamples> sampleFamilies)
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
-
addClassLoadingMetrics
void addClassLoadingMetrics(java.util.List<Collector.MetricFamilySamples> sampleFamilies)
-
collect
public java.util.List<Collector.MetricFamilySamples> collect()
Description copied from class:Collector
Return all of the metrics of this Collector.
-
-