Skip to content

Commit 3b86e0c

Browse files
committed
Rename jvm.cgroup.memory.usageMb to usage for consistency
All the other memory metrics don't have the Mb units as a suffix to the metric name, so this is more consistent
1 parent 85fe1a0 commit 3b86e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metrics/src/main/java/io/avaje/metrics/core/JvmCGroupMemory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ long pctUsage() {
6565
}
6666

6767
GaugeLong usage(MemSource source, boolean reportChangesOnly) {
68-
return DGaugeLong.of("jvm.cgroup.memory.usageMb", source::usageMb, reportChangesOnly);
68+
return DGaugeLong.of("jvm.cgroup.memory.usage", source::usageMb, reportChangesOnly);
6969
}
7070

7171
GaugeLong pctUsage(MemSource source, boolean reportChangesOnly) {

0 commit comments

Comments
 (0)