Skip to content

Consistently use bytes as the unit for all memory-related metrics #6413

Closed
@aantono

Description

@aantono

Enhancement request:
Provide ability to specify the unit of measurement for memory metrics.
Currently all the metrics extracted via MemoryUsage mBean are automatically converted to Kb unit of measurement, instead of original bytes, which causes issues for migrated applications, that used to rely on Dropwizard JVM MemoryUsageGaugeSet to export the same metrics, which used bytes as a unit of measurement. (Also, IMHO, it would be beneficial for others, who choose/want/need to get memory metrics in bytes instead of Kb).

Maybe adding a property (something along the lines of memoryMetricUnitMultiplier) with default value of 1024, but externally configurable, to allow custom selection of units?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions