Verify and document native histograms with custom buckets (NHCB) support by zeitlinger · Pull Request #1846 · prometheus/client_java (original) (raw)

added 3 commits

February 4, 2026 14:31

@zeitlinger

… custom buckets (NHCB)

Implements issue #1838 by verifying and documenting that client_java fully supports native histograms with custom buckets (NHCB, schema -53).

According to the Prometheus specification, NHCB is handled by exposing classic histograms with custom bucket boundaries, which Prometheus servers convert to native histograms (schema -53) when configured with convert_classic_histograms_to_nhcb.

Changes:

Test coverage:

All 11 tests pass successfully.

Signed-off-by: Gregor Zeitlinger gregor.zeitlinger@grafana.com

@zeitlinger

Signed-off-by: Gregor Zeitlinger gregor.zeitlinger@grafana.com

@zeitlinger

Signed-off-by: Gregor Zeitlinger gregor.zeitlinger@grafana.com

@zeitlinger

Signed-off-by: Gregor Zeitlinger gregor.zeitlinger@grafana.com

@zeitlinger

Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com Signed-off-by: Gregor Zeitlinger gregor.zeitlinger@grafana.com

jaydeluca

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})