Skip to content

Commit

Permalink
Drop wrong base units in JvmHeapPressureMetrics (#4765)
Browse files Browse the repository at this point in the history
Fixes gh-3236
izeye authored Feb 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9c3b35b commit 2d3f77b
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -21,7 +21,6 @@
import io.micrometer.core.instrument.Gauge;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.Tag;
import io.micrometer.core.instrument.binder.BaseUnits;
import io.micrometer.core.instrument.binder.MeterBinder;
import io.micrometer.core.instrument.distribution.TimeWindowSum;

@@ -92,7 +91,6 @@ public void bindTo(@NonNull MeterRegistry registry) {
.tag("area", "heap")
.tag("pool", "long-lived")
.description("The percentage of long-lived heap pool used after the last GC event, in the range [0..1]")
.baseUnit(BaseUnits.PERCENT)
.register(registry);
}

@@ -103,7 +101,6 @@ public void bindTo(@NonNull MeterRegistry registry) {
.tags(tags)
.description(
"An approximation of the percent of CPU time used by GC activities over the last lookback period or since monitoring began, whichever is shorter, in the range [0..1]")
.baseUnit(BaseUnits.PERCENT)
.register(registry);
}

0 comments on commit 2d3f77b

Please sign in to comment.