From ab733a182c9ab9c4df3a2b255e08d2f13d7cc745 Mon Sep 17 00:00:00 2001 From: Fiona Liao Date: Fri, 23 Jan 2026 16:25:52 +0000 Subject: [PATCH] Example sum_over_time histogram no warning --- promql/promqltest/testdata/native_histograms.test | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/promql/promqltest/testdata/native_histograms.test b/promql/promqltest/testdata/native_histograms.test index d66400f787..9c2ff84785 100644 --- a/promql/promqltest/testdata/native_histograms.test +++ b/promql/promqltest/testdata/native_histograms.test @@ -1726,6 +1726,12 @@ eval instant at 11m histogram_count(sum_over_time(mixed[2m])) expect no_info {} 21 +# this query without the histogram_count will fail as no warning is emitted +eval instant at 11m sum_over_time(mixed[2m]) + expect warn msg:PromQL warning: conflicting counter resets during histogram aggregation + expect no_info + {} {{count:21 sum:18 buckets:[7 8 6]}} + eval instant at 11m histogram_count(avg_over_time(mixed[2m])) expect warn msg:PromQL warning: conflicting counter resets during histogram aggregation expect no_info