Skip to content

Commit

Permalink
use consistent prefix for memory pool metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
fstab committed May 29, 2021
1 parent d37ad73 commit 96ce10f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void addMemoryAreaMetrics(List<MetricFamilySamples> sampleFamilies) {
MemoryUsage nonHeapUsage = memoryBean.getNonHeapMemoryUsage();

GaugeMetricFamily finalizer = new GaugeMetricFamily(
"jvm_objects_pending_finalization",
"jvm_memory_objects_pending_finalization",
"The number of objects waiting in the finalizer queue.",
memoryBean.getObjectPendingFinalizationCount());
sampleFamilies.add(finalizer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void testMemoryAreas() {
assertEquals(
10L,
registry.getSampleValue(
"jvm_objects_pending_finalization"),
"jvm_memory_objects_pending_finalization"),
.0000001);
assertEquals(
500000L,
Expand Down

0 comments on commit 96ce10f

Please sign in to comment.