Have 'Hide series with only zeros' ignore nulls (#9179)

* Prometheus: Fix actual step computation logic when a min_step is specified and the range is longer than min_step * 11000.

* Have the 'Hide series with only zeros' option also apply to series with some null values.
This commit is contained in:
Alin Sinpalean
2017-09-06 16:50:55 +02:00
committed by Torkel Ödegaard
parent 095ac80d19
commit 5d4b8b5a5c

View File

@@ -191,10 +191,9 @@ export default class TimeSeries {
this.stats.logmin = currentValue;
}
}
if (currentValue !== 0) {
this.allIsZero = false;
if (currentValue !== 0) {
this.allIsZero = false;
}
}
result.push([currentTime, currentValue]);