Package io.prometheus.client.hotspot
Class MemoryPoolsExports
java.lang.Object
io.prometheus.client.Collector
io.prometheus.client.hotspot.MemoryPoolsExports
Exports metrics about JVM memory areas.
Example usage:
new MemoryPoolsExports().register();
Example metrics being exported:
jvm_memory_bytes_used{area="heap"} 2000000
jvm_memory_bytes_committed{area="nonheap"} 200000
jvm_memory_bytes_max{area="nonheap"} 2000000
jvm_memory_pool_bytes_used{pool="PS Eden Space"} 2000
-
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
ConstructorsConstructorDescriptionMemoryPoolsExports(MemoryMXBean memoryBean, List<MemoryPoolMXBean> poolBeans) -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddMemoryAreaMetrics(List<Collector.MetricFamilySamples> sampleFamilies) (package private) voidaddMemoryPoolMetrics(List<Collector.MetricFamilySamples> sampleFamilies) collect()Return all of the metrics of this Collector.Methods inherited from class io.prometheus.client.Collector
checkMetricLabelName, checkMetricName, doubleToGoString, register, register, sanitizeMetricName
-
Field Details
-
memoryBean
-
poolBeans
-
-
Constructor Details
-
MemoryPoolsExports
public MemoryPoolsExports() -
MemoryPoolsExports
-
-
Method Details