Skip to content

MetricRegistryMetricReader produces unordered Iterable with metrics #3761

Closed
@edudar

Description

@edudar

This is minor but sometimes quite annoying issue. MetricRegistryMetricReader uses simple HashSet to collect metrics from registry. As result they appear it unpredictable order when exported to web/jmx view. It would be expected to see metrics ordered by name instead of

dw.a.run.snapshot.95thPercentile: 10,
dw.a.run.expexp.snapshot.99thPercentile: 82,
dw.a.run.dump.snapshot.max: 1,
dw.a.run.expexp.snapshot.95thPercentile: 9,
dw.a.run.dump.snapshot.999thPercentile: 1,
dw.a.run.count: 2,

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