prometheus/promql
beorn7 c0a13223e7 promql: add tests to demonstrate extrapolation below zero
This shows how float counters cannot go below zero when extrapolationg
for rate/increase, and how histograms do not have that protection yet,
leading to an overestimation of the rate/increase.

This also demonstrates edge cases where the count extrapolation does
not need to be limited, but an individual bucket still goes below
zero.

Signed-off-by: beorn7 <beorn@grafana.com>
2025-07-06 23:42:55 +02:00
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
parser PromQL: Fix printing +min() 2025-07-02 11:17:17 +02:00
promqltest promql: add tests to demonstrate extrapolation below zero 2025-07-06 23:42:55 +02:00
bench_test.go chore(engine): add simple NHCB benchmark 2025-05-07 13:54:34 +02:00
durations_test.go Add step(), min(a,b) and max(a,b) in promql duration expressions 2025-07-02 11:17:17 +02:00
durations.go Add step(), min(a,b) and max(a,b) in promql duration expressions 2025-07-02 11:17:17 +02:00
engine_internal_test.go chore: enable gci linter (#16245) 2025-03-22 15:46:13 +00:00
engine_test.go Add step(), min(a,b) and max(a,b) in promql duration expressions 2025-07-02 11:17:17 +02:00
engine.go Add step(), min(a,b) and max(a,b) in promql duration expressions 2025-07-02 11:17:17 +02: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 Refactor engine creation in tests 2024-07-14 13:58:51 +02:00
functions.go Merge pull request #16773 from prometheus/beorn7/promql 2025-06-27 14:57:12 +02:00
fuzz_test.go fix: use "ErrorContains" or "EqualError" instead of "Contains(t, err.Error()" and "Equal(t, err.Error()" (#15094) 2024-10-06 16:35:29 +00:00
fuzz.go feature: type-and-unit-labels (PROM-39 implementation) (#16228) 2025-05-17 09:37:25 +00:00
histogram_stats_iterator_test.go promql: reuse histogramStatsIterator where possible, and expose it for other implementations to use (#16686) 2025-06-18 23:53:46 +02:00
histogram_stats_iterator.go promql: reuse histogramStatsIterator where possible, and expose it for other implementations to use (#16686) 2025-06-18 23:53:46 +02:00
info_test.go [FEATURE] PromQL: Add experimental info function MVP (#14495) 2024-10-16 13:52:11 +01:00
info.go chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
promql_test.go Refactor engine creation in tests 2024-07-14 13:58:51 +02:00
quantile_test.go Export quantile functions (#15190) 2024-11-27 13:20:23 +01:00
quantile.go fix(promql): histogram_quantile and histogram_fraction NaN observed in native histogram (#16724) 2025-06-25 13:37:43 +02:00
query_logger_test.go chore: Fix typos (#14868) 2024-09-10 22:32:03 +02:00
query_logger.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
value_test.go test: move most PromQL tests into separate test package 2024-05-08 16:28:56 +01:00
value.go promql: support variable scalar parameter in aggregations in range queries (#16404) 2025-05-11 15:40:31 +02:00