prometheus/promql
Filip Petkovski be7a4c9b83
Ignore stale histograms for counter reset detection
The histogram stats decoder keeps track of the last seen histogram sample
in order to properly detect counter resets. We are seeing an issue where
a histogram with UnknownResetHint gets treated as a counter reset when it follows
a stale histogram sample.

I believe that this is incorrect since stale samples should be completely ignored
in PromQL. As a result, they should not be stored in the histogram stats iterator
and the counter reset detection needs to be done against the last non-stale sample.

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
2024-07-26 10:08:31 +02:00
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
parser Allow durations for number rule 2024-07-10 15:50:22 +02:00
promqltest Merge pull request #14464 from prometheus/beorn7/histogram 2024-07-17 14:57:46 +02:00
bench_test.go feat: add limitk() and limit_ratio() operators (#12503) 2024-07-03 22:18:57 +02:00
engine.go Fix decoding buckets for native histograms in binops 2024-07-10 11:55:29 +02:00
engine_internal_test.go refactor: extract some PromQL Engine tests which use unexported structs 2024-05-08 16:27:17 +01:00
engine_test.go Merge pull request #14109 from harry671003/pass_limit_to_querier 2024-07-12 10:27:52 +01:00
functions.go Merge pull request #14362 from charleskorn/charleskorn/sum-infinity 2024-07-03 01:05:03 -04:00
functions_internal_test.go Fix issue where summation of +/- infinity returns NaN instead of infinity 2024-06-28 11:26:54 +10:00
functions_test.go test: move most PromQL tests into separate test package 2024-05-08 16:28:56 +01:00
fuzz.go promql: fuzz test needs symbol table for parser 2024-02-26 11:45:25 +00:00
fuzz_test.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
histogram_stats_iterator.go Ignore stale histograms for counter reset detection 2024-07-26 10:08:31 +02:00
histogram_stats_iterator_test.go Ignore stale histograms for counter reset detection 2024-07-26 10:08:31 +02:00
promql_test.go feat: add limitk() and limit_ratio() operators (#12503) 2024-07-03 22:18:57 +02:00
quantile.go Merge branch 'main' into nhcb 2024-05-14 16:20:15 +08:00
quantile_test.go PromQL: ignore small errors for bucketQuantile (#13153) 2023-11-25 00:05:38 +01:00
query_logger.go Join errors 2024-05-27 17:14:17 +02:00
query_logger_test.go promql.ActiveQueryTracker: Unmap mmapped file when done 2024-05-09 14:27:29 +02:00
value.go Optimize histogram iterators (#13340) 2024-01-23 17:02:14 +01:00
value_test.go test: move most PromQL tests into separate test package 2024-05-08 16:28:56 +01:00