Verify and document native histograms with custom buckets (NHCB) support by zeitlinger · Pull Request #1846 · prometheus/client_java (original) (raw)
added 3 commits
… 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:
- Add comprehensive test suite (11 tests) verifying custom bucket support for arbitrary, linear, and exponential boundaries
- Add documentation section on custom buckets and NHCB to metric-types.md
- Create complete working example with Docker Compose (Prometheus + Grafana)
- Add verification report documenting findings
Test coverage:
- Arbitrary custom boundaries
- Linear boundaries (equal-width buckets)
- Exponential boundaries
- Classic-only and dual-mode histograms
- Text and protobuf format serialization
- Labeled histograms and edge cases
All 11 tests pass successfully.
Signed-off-by: Gregor Zeitlinger gregor.zeitlinger@grafana.com
Signed-off-by: Gregor Zeitlinger gregor.zeitlinger@grafana.com
- Compress table columns to fit 100 char line limit
- Break long URL link across lines
Signed-off-by: Gregor Zeitlinger gregor.zeitlinger@grafana.com
Signed-off-by: Gregor Zeitlinger gregor.zeitlinger@grafana.com
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com Signed-off-by: Gregor Zeitlinger gregor.zeitlinger@grafana.com
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 }})