prometheus/model/histogram
Linas Medžiūnas 44df626620
Some checks failed
buf.build / lint and publish (push) Has been cancelled
CI / Go tests (push) Has been cancelled
CI / More Go tests (push) Has been cancelled
CI / Go tests with previous Go version (push) Has been cancelled
CI / UI tests (push) Has been cancelled
CI / Go tests on Windows (push) Has been cancelled
CI / Mixins tests (push) Has been cancelled
CI / Build Prometheus for common architectures (push) Has been cancelled
CI / Build Prometheus for all architectures (push) Has been cancelled
CI / Check generated parser (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
CI / fuzzing (push) Has been cancelled
CI / codeql (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CI / Report status of build Prometheus for all architectures (push) Has been cancelled
CI / Publish main branch artifacts (push) Has been cancelled
CI / Publish release artefacts (push) Has been cancelled
CI / Publish UI on npm Registry (push) Has been cancelled
promql (histograms): reconcile mismatched NHCB bounds (#17278)
Fixes #17255.

The implementation happens mostly in the Add and Sub method, but the reconciliation works for all relevant operations. For example, you can now `rate` over a range wherein the custom bucket boundaries are changing.

Any custom bucket reconciliation is flagged with an info-level annotation.

---------

Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
Signed-off-by: Linas Medžiūnas <linasm@users.noreply.github.com>
2025-10-18 01:03:52 +02:00
..
float_histogram.go promql (histograms): reconcile mismatched NHCB bounds (#17278) 2025-10-18 01:03:52 +02:00
float_histogram_test.go promql (histograms): reconcile mismatched NHCB bounds (#17278) 2025-10-18 01:03:52 +02:00
generic.go promql (histograms): reconcile mismatched NHCB bounds (#17278) 2025-10-18 01:03:52 +02:00
generic_test.go [NHCB] Separate CustomBucketBoundsMatch from floatBucketsMatch 2025-10-05 22:38:07 +03:00
histogram.go [NHCB] Separate CustomBucketBoundsMatch from floatBucketsMatch 2025-10-05 22:38:07 +03:00
histogram_test.go model/histogram: Fix checkHistogramCustomBounds to accept -Inf 2025-10-10 23:10:32 +02:00
test_utils.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00