prometheus/promql/promqltest/testdata
Jeanette Tan 9fddb70b8c promql: Add test case for avg_over_time single histogram fix
Add regression test for the bug where avg_over_time with a single
histogram sample would produce +Inf count/sum and NaN zero bucket
due to division by zero. The test verifies that both regular
exponential histograms and native histograms with custom buckets
(NHCB) correctly return the histogram unchanged when averaging
a single sample.

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
2026-02-11 05:06:53 +08:00
..
aggregators.test promql: use Kahan summation for Native Histograms (#15687) 2026-02-08 00:52:22 +01:00
at_modifier.test promql: fix panic with @ modifier on empty ranges (#18020) 2026-02-06 08:30:15 +00:00
collision.test promqltest: migrate test files to new syntax using basic mode 2025-06-21 18:46:33 +05:30
duration_expression.test PromQL: duration expression: add range() 2025-12-10 16:27:18 +01:00
extended_vectors.test promql: fix smoothed interpolation across counter resets 2026-02-02 11:54:35 +01:00
fill-modifier.test Add a few fill modifier tests with keyword-like metric names 2026-01-16 20:11:38 +01:00
functions.test PromQL: Fix collision in label_join and label_replace with non-overlapping series. 2025-12-16 16:58:53 +01:00
histograms.test promql: fix histogram_fraction issue when lower falls within the first bucket (#17424) 2025-11-13 11:17:51 +01:00
info.test promql: info function: fix unit test for ignoring info metrics themselves (#17911) 2026-01-22 15:24:41 +01:00
limit.test promqltest: add/remove explicit annotation expectations to relevant tests 2025-06-21 18:46:50 +05:30
literals.test Added support for string literals and range results for instant queries in test scripting framework (#17055) 2025-09-16 12:28:19 +01:00
name_label_dropping.test promql: Fix collision error with delayed name removal for non-overlapping series 2025-12-12 14:50:29 +01:00
native_histograms.test promql: Add test case for avg_over_time single histogram fix 2026-02-11 05:06:53 +08:00
operators.test PromQL: Fix collision in unary negation with non-overlapping series. 2025-12-17 11:03:55 +01:00
range_queries.test Added support for string literals and range results for instant queries in test scripting framework (#17055) 2025-09-16 12:28:19 +01:00
selectors.test promqltest: Complete the tests for info annotations (#15429) 2024-11-21 14:20:38 +01:00
staleness.test Merge branch 'main' into 3.0-main-sync-24-07-18 2024-07-18 15:56:40 +02:00
subquery.test promqltest: add/remove explicit annotation expectations to relevant tests 2025-06-21 18:46:50 +05:30
trig_functions.test make matrix selection and lookback left-open and right-closed 2024-06-20 22:05:40 +08:00
type_and_unit.test feature: type-and-unit-labels (PROM-39 implementation) (#16228) 2025-05-17 09:37:25 +00:00