diff --git a/promql/promqltest/testdata/native_histograms.test b/promql/promqltest/testdata/native_histograms.test index fd9fbcc4d0..6ddd71b044 100644 --- a/promql/promqltest/testdata/native_histograms.test +++ b/promql/promqltest/testdata/native_histograms.test @@ -1934,6 +1934,52 @@ eval instant at 1m h_test / 0.5 + h_positive_buckets {{schema:0 count:10 sum:7.0710678118654755 z_bucket:0 z_bucket_w:0.5 buckets:[10]}} + +eval instant at 1m h_positive_buckets >/ 0.1 + h_positive_buckets {{schema:0 count:11.6 sum:7.551067811865476 z_bucket:1.6 z_bucket_w:0.5 buckets:[10]}} + +eval instant at 1m h_positive_buckets >/ 0 + h_positive_buckets {{schema:0 sum:8.0210678118654755 count:12 z_bucket:2 z_bucket_w:0.5 buckets:[10]}} + +eval instant at 1m h_positive_buckets / -0.5 + h_negative_buckets {{schema:0 count:2 sum:-0.5 z_bucket:2 z_bucket_w:0.5}} + +eval instant at 1m h_negative_buckets >/ -0.1 + h_negative_buckets {{schema:0 count:0.4 sum:-0.020000000000000004 z_bucket:0.4 z_bucket_w:0.5}} + +eval instant at 1m h_negative_buckets >/ 0 + h_negative_buckets {{schema:0 z_bucket_w:0.5}} + + load 1m cbh {{schema:-53 sum:172.5 count:15 custom_values:[5 10 15 20] buckets:[1 6 4 3 1]}}