mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect/promql: do not take into account buckets with negative counters in prometheus_buckets
This commit is contained in:
parent
193d553f6d
commit
414259f47b
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ func vmrangeBucketsToLE(tss []*timeseries) []*timeseries {
|
||||||
for _, xs := range xss {
|
for _, xs := range xss {
|
||||||
ts := xs.ts
|
ts := xs.ts
|
||||||
v := ts.Values[i]
|
v := ts.Values[i]
|
||||||
if !math.IsNaN(v) {
|
if !math.IsNaN(v) && v > 0 {
|
||||||
count += v
|
count += v
|
||||||
}
|
}
|
||||||
ts.Values[i] = count
|
ts.Values[i] = count
|
||||||
|
|
Loading…
Reference in a new issue