Class JvmBufferPoolMetrics

Object
JvmBufferPoolMetrics

public class JvmBufferPoolMetrics extends Object
JVM Buffer Pool metrics. The JvmBufferPoolMetrics are registered as part of the JvmMetrics like this:

 JvmMetrics.builder().register();
 
However, if you want only the JvmBufferPoolMetrics you can also register them directly:

 JvmBufferPoolMetrics.builder().register();
 
Example metrics being exported:
 # HELP jvm_buffer_pool_capacity_bytes Bytes capacity of a given JVM buffer pool.
 # TYPE jvm_buffer_pool_capacity_bytes gauge
 jvm_buffer_pool_capacity_bytes{pool="direct"} 8192.0
 jvm_buffer_pool_capacity_bytes{pool="mapped"} 0.0
 # HELP jvm_buffer_pool_used_buffers Used buffers of a given JVM buffer pool.
 # TYPE jvm_buffer_pool_used_buffers gauge
 jvm_buffer_pool_used_buffers{pool="direct"} 1.0
 jvm_buffer_pool_used_buffers{pool="mapped"} 0.0
 # HELP jvm_buffer_pool_used_bytes Used bytes of a given JVM buffer pool.
 # TYPE jvm_buffer_pool_used_bytes gauge
 jvm_buffer_pool_used_bytes{pool="direct"} 8192.0
 jvm_buffer_pool_used_bytes{pool="mapped"} 0.0