diff --git a/app/vmselect/promql/transform.go b/app/vmselect/promql/transform.go index 03a55a9e4a..ac00a57d45 100644 --- a/app/vmselect/promql/transform.go +++ b/app/vmselect/promql/transform.go @@ -362,7 +362,7 @@ func vmrangeBucketsToLE(tss []*timeseries) []*timeseries { for _, xs := range xss { ts := xs.ts v := ts.Values[i] - if !math.IsNaN(v) { + if !math.IsNaN(v) && v > 0 { count += v } ts.Values[i] = count