MemoryUsage heapUsage = memoryBean.getHeapMemoryUsage();
MemoryUsage nonHeapUsage = memoryBean.getNonHeapMemoryUsage();
ArrayList<MetricFamilySamples.Sample> usedSamples = new ArrayList<MetricFamilySamples.Sample>();
usedSamples.add(
new MetricFamilySamples.Sample(
<BUG>MEMORY_USED_METRIC,
MEMORY_LABEL_NAMES,
MEMORY_HEAP_LABEL,
heapUsage.getUsed()));</BUG>
usedSamples.add(

MemoryUsage heapUsage = memoryBean.getHeapMemoryUsage();
MemoryUsage nonHeapUsage = memoryBean.getNonHeapMemoryUsage();
ArrayList<MetricFamilySamples.Sample> usedSamples = new ArrayList<MetricFamilySamples.Sample>();
usedSamples.add(
