prometheus/promql
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
..
fuzz-data
parser Update package promql for new labels.Labels type 2022-12-19 15:22:09 +00:00
testdata
bench_test.go promql: add benchmark for match against blank string 2023-01-05 14:05:54 +00:00
engine.go promql: optimise aggregation with no labels 2022-12-23 13:33:14 +00:00
engine_test.go histograms: Return actually useful counter reset hints 2023-01-25 16:57:21 +01:00
functions.go Update package promql for new labels.Labels type 2022-12-19 15:22:09 +00:00
functions_test.go
fuzz.go
fuzz_test.go
promql_test.go promql: add test for race conditions in query engine (#11743) 2022-12-20 17:58:29 +01:00
quantile.go
query_logger.go
query_logger_test.go
test.go Update package promql tests for new labels.Labels type 2022-12-19 15:22:09 +00:00
test_test.go Update package promql tests for new labels.Labels type 2022-12-19 15:22:09 +00:00
value.go storage: re-use iterators to save garbage 2022-12-15 18:32:45 +00:00
value_test.go