io.prometheus.client.hotspot.BufferPoolsExports Maven / Gradle / Ivy
package io.prometheus.client.hotspot;
import io.prometheus.client.Collector;
import io.prometheus.client.GaugeMetricFamily;
import java.lang.management.ManagementFactory;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.logging.Logger;
/**
* Exports metrics about JVM buffers.
*
* Can be replaced with a simple access once JDK 1.7 compatibility is baseline.
*
*/
public class BufferPoolsExports extends Collector {
private static final Logger LOGGER = Logger.getLogger(BufferPoolsExports.class.getName());
private final List