|
|
|
@ -584,3 +584,25 @@ eval instant at 10m histogram_count(increase(histogram_with_reset[15m])) |
|
|
|
|
|
|
|
|
|
eval instant at 10m histogram_sum(increase(histogram_with_reset[15m])) |
|
|
|
|
{} 91.5 |
|
|
|
|
|
|
|
|
|
clear |
|
|
|
|
|
|
|
|
|
# Test histogram_quantile and histogram_fraction with conflicting classic and native histograms. |
|
|
|
|
load 1m |
|
|
|
|
series{host="a"} {{schema:0 sum:5 count:4 buckets:[9 2 1]}} |
|
|
|
|
series{host="a", le="0.1"} 2 |
|
|
|
|
series{host="a", le="1"} 3 |
|
|
|
|
series{host="a", le="10"} 5 |
|
|
|
|
series{host="a", le="100"} 6 |
|
|
|
|
series{host="a", le="1000"} 8 |
|
|
|
|
series{host="a", le="+Inf"} 9 |
|
|
|
|
|
|
|
|
|
eval instant at 0 histogram_quantile(0.8, series) |
|
|
|
|
expect no_info |
|
|
|
|
expect warn msg: PromQL warning: vector contains a mix of classic and native histograms for metric name "series" |
|
|
|
|
# Should return no results. |
|
|
|
|
|
|
|
|
|
eval instant at 0 histogram_fraction(-Inf, 1, series) |
|
|
|
|
expect no_info |
|
|
|
|
expect warn msg: PromQL warning: vector contains a mix of classic and native histograms for metric name "series" |
|
|
|
|
# Should return no results. |
|
|
|
|