eclipse / microprofile-metrics

microprofile-metrics
Apache License 2.0
100 stars 66 forks source link

add ability to enable/disable distribution buckets for Timers/Histograms #674

Closed donbourne closed 11 months ago

donbourne commented 2 years ago

relates to #587

This should include the ability to enable/disable by configuration This may also include the ability to enable/disable programmatically

Channyboy commented 1 year ago

Enabling/disabling a default list of buckets for histograms and timers as discussed in the metrics meeting minutes is an optional configuration.

The property will be: mp.metrics.distribution.percentiles-histogram.enabled which accepts a true/false value.

Vendors who optionally implement this will have to provide a default set of buckets. Whether of their own implementation or using another implementation (i.e. micrometer).

Furthermore, given the uncertainty of the set of default buckets, vendors that implement the above property should also implement a lower and upper bound for buckets.

There will be no programmatic support.