prometheus/tsdb/chunkenc
beorn7 1cfc8f65a3 histograms: Return actually useful counter reset hints
This is a bit more conservative than we could be. As long as a chunk
isn't the first in a block, we can be pretty sure that the previous
chunk won't disappear. However, the incremental gain of returning
NotCounterReset in these cases is probably very small and might not be
worth the code complications.

Wwith this, we now also pay attention to an explicitly set counter
reset during ingestion. While the case doesn't show up in practice
yet, there could be scenarios where the metric source knows there was
a counter reset even if it might not be visible from the values in the
histogram. It is also useful for testing.

Signed-off-by: beorn7 <beorn@grafana.com>
2023-01-25 16:57:21 +01:00
..
bstream.go tsdb: stop saving a copy of last 4 samples in memSeries (#11296) 2022-09-27 19:32:05 +05:30
bstream_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
chunk.go Add chunk encoding for float histogram (#11716) 2022-12-20 15:33:32 +05:30
chunk_test.go tsdb: Rework iterators (#9877) 2021-11-29 13:24:23 +05:30
float_histogram.go histograms: Return actually useful counter reset hints 2023-01-25 16:57:21 +01:00
float_histogram_test.go histograms: Return actually useful counter reset hints 2023-01-25 16:57:21 +01:00
histogram.go histograms: Return actually useful counter reset hints 2023-01-25 16:57:21 +01:00
histogram_meta.go histograms: Return actually useful counter reset hints 2023-01-25 16:57:21 +01:00
histogram_meta_test.go histograms: General readability tweaks 2023-01-19 13:26:42 +01:00
histogram_test.go histograms: Return actually useful counter reset hints 2023-01-25 16:57:21 +01:00
varbit.go tsdb: Update comment about a possible space optimization (#11303) 2022-09-15 13:11:57 +05:30
varbit_test.go Use more varbit in histogram chunks 2021-10-13 20:03:35 +02:00
xor.go Add chunk encoding for float histogram (#11716) 2022-12-20 15:33:32 +05:30
xor_test.go chunkenc: Slightly optimize xorWrite/xoRead (#11476) 2022-10-20 15:08:01 +05:30