Skip to content

Expose api in TimeWindowPercentileHistogram for custom upper and lower bounds of the bucket of internal HdrHistogram. #4327

@Pengzna

Description

@Pengzna

Hi guys, I am a developer who uses Micrometer for system monitoring. I really appreciate the ease of use of Micrometer.

I noticed that HdrHistogram is used in io.micrometer.core.instrument.distribution.TimeWindowPercentileHistogram. However, the current hdrHistogram uses some default construction parameters, so that the upper and lower bounds of the bucket of hdrHistogram are set to [1, 127] by default. This interval size cannot meet the needs of our usage scenarios, and there will be frequent resize operations, which will bring some performance overhead.

We hope that the internalHistogram can be exposed so that we can have some methods to customize the upper and lower bounds of the buckets in internalHistogram according to our needs. Thanks~

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions