Default boundaries in explicit buckets histograms are not optmized for Latency #2759
Labels
[label deprecated] triaged-accepted
[label deprecated] Issue triaged and accepted by OTel community, can proceed with creating a PR
spec:metrics
Related to the specification/metrics directory
What are you trying to achieve?
The defaults for the explicit bucket histogram have the first boundary in the interval
(-inf,0]
. Since Explicit Bucket histograms only support non-negative values, this first boundary can only record the 0 value, which is not very useful in practice given that the defaults of the Explicit Bucket histogram are supposed to record latency values.https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#explicit-bucket-histogram-aggregation
The default values also limits the last boundary to
(1000, inf)
, which limits the calculation of percentiles to 1s, which is not very good for latency.https://github.com/prometheus/prometheus/blob/main/promql/quantile.go#L75
What did you expect to see?
I expect the defaults to have something more useful for recording latency values.
Additional context.
Add any other context about the problem here. If you followed an existing documentation, please share the link to it.
The text was updated successfully, but these errors were encountered: