prometheus/model
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
..
exemplar Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
histogram add generic shrink function (#13001) 2023-11-08 14:43:05 +01:00
labels ci(lint): enable godot; append dot at the end of comments 2023-10-31 19:53:38 +02:00
metadata Introduce TSDB changes for appending metadata to the WAL (#10972) 2022-07-19 10:58:52 +02:00
relabel Merge branch 'main' of github.com:prometheus/prometheus into document-and-test-relabel-memory-reuse 2023-07-12 15:01:29 +02:00
rulefmt Remove duplicate tests 2023-09-29 10:41:13 +02:00
textparse use Go standard errors package 2023-11-03 07:26:31 +00:00
timestamp Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
value Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00