Skip to content

Metrics: review classic histogram bucket boundaries #3823

Open

Description

@pbleser-oc

Part of #3817.

Goal

Review the classic bucket boundaries, so the classic form stays useful for setups without native histograms.

  • prometheus.DefBuckets (0.005 … 10) is used explicitly by graph's http_request_duration_seconds, ldap_client_operation_duration_seconds and identity_backend_api_duration_seconds. Anything slower than 10s, for example a slow LDAP call or backend request, lands in +Inf.
  • DefBuckets is used implicitly (no Buckets set) by invitations' invitation_duration_seconds, webfinger's webfinger_duration_seconds and proxy's duration_seconds and service_duration_seconds. These should get explicit buckets, which is also required once they are exposed as native histograms (see the dual exposition sub-issue).
  • postprocessing and search already use custom buckets (0.1 … 1200 and 0.1 … 60); check they still fit.

Changing bucket boundaries breaks continuity for existing _bucket series (old and new boundaries can't be compared directly), so this should be mentioned in the changelog.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions