mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
committed by
Torkel Ödegaard
parent
095ac80d19
commit
5d4b8b5a5c
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user