Skip to content

JvmHeapPressureMetrics have incorrect base unit #3236

Description

@fkrull

Describe the bug
The unit for the metrics "jvm.memory.usage.after.gc" and "jvm.gc.overhead" in JvmHeapPressureMetrics.java is set as percent, but the values are in range [0...1]. This confuses Datadog (and possibly other registries?) which shows these metrics as e.g. "0.1%" instead of 10%.

Environment

  • Micrometer 1.9.0
  • Datadog

Expected behavior
The unit should match the value range so that Datadog can display it properly. Datadog seems to support a "fraction" unit that works for this range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA general buginstrumentationAn issue that is related to instrumenting a componentmodule: micrometer-coreAn issue that is related to our core modulerelease notesNoteworthy change to call out in the release notes

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions