prometheus/model/histogram
Ziqi Zhao ab2a7bb74f
add generic shrink function (#13001)
Add `ReduceResolution` method to `Histogram` and `FloatHistogram`

This takes the original `mergeToSchema` function and turns it into a more generic `reduceResolution` function, which is the building block for the new methods.

The methods will help with addressing #12864.

---------

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-11-08 14:43:05 +01:00
..
float_histogram.go add generic shrink function (#13001) 2023-11-08 14:43:05 +01:00
float_histogram_test.go Merge branch 'main' into linasm/optimize-floatBucketIterator2 2023-10-24 16:27:10 +03:00
generic.go add generic shrink function (#13001) 2023-11-08 14:43:05 +01:00
generic_test.go add generic shrink function (#13001) 2023-11-08 14:43:05 +01:00
histogram.go add generic shrink function (#13001) 2023-11-08 14:43:05 +01:00
histogram_test.go Change Validate to be a method on histogram structs 2023-11-03 16:47:59 +02:00
test_utils.go Move histogram validation code to model/histogram 2023-11-03 16:17:24 +02:00