Skip to content

Commit

Permalink
Drop wrong base units in JvmHeapPressureMetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye committed Feb 22, 2024
1 parent 2b5181c commit 2f1620c
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand Down

0 comments on commit 2f1620c

Please sign in to comment.