Class JvmMemoryPoolAllocationMetrics
java.lang.Object
io.prometheus.metrics.instrumentation.jvm.JvmMemoryPoolAllocationMetrics
JVM memory allocation metrics. The
JvmMemoryPoolAllocationMetrics are registered as part
of the JvmMetrics like this:
JvmMetrics.builder().register();
However, if you want only the JvmMemoryPoolAllocationMetrics you can also register them
directly:
JvmMemoryAllocationMetrics.builder().register();
Example metrics being exported:
# HELP jvm_memory_pool_allocated_bytes_total Total bytes allocated in a given JVM memory pool. Only updated after GC, not continuously.
# TYPE jvm_memory_pool_allocated_bytes_total counter
jvm_memory_pool_allocated_bytes_total{pool="Code Cache"} 4336448.0
jvm_memory_pool_allocated_bytes_total{pool="Compressed Class Space"} 875016.0
jvm_memory_pool_allocated_bytes_total{pool="Metaspace"} 7480456.0
jvm_memory_pool_allocated_bytes_total{pool="PS Eden Space"} 1.79232824E8
jvm_memory_pool_allocated_bytes_total{pool="PS Old Gen"} 1428888.0
jvm_memory_pool_allocated_bytes_total{pool="PS Survivor Space"} 4115280.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Labelsprivate final List<GarbageCollectorMXBean> private static final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateJvmMemoryPoolAllocationMetrics(List<GarbageCollectorMXBean> garbageCollectorBeans, Labels constLabels) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(PrometheusProperties config) private voidregister(PrometheusRegistry registry)
-
Field Details
-
JVM_MEMORY_POOL_ALLOCATED_BYTES_TOTAL
- See Also:
-
garbageCollectorBeans
-
constLabels
-
-
Constructor Details
-
JvmMemoryPoolAllocationMetrics
private JvmMemoryPoolAllocationMetrics(List<GarbageCollectorMXBean> garbageCollectorBeans, Labels constLabels)
-
-
Method Details
-
register
-
builder
-
builder
-