app/vmselect/promql: skip NaN values in count_values func

This commit is contained in:
Aliaksandr Valialkin 2019-06-10 22:42:03 +03:00
parent cbe692f0e2
commit bf9782eaf6

View file

@ -301,6 +301,9 @@ func aggrFuncCountValues(afa *aggrFuncArg) ([]*timeseries, error) {
m := make(map[float64]bool)
for _, ts := range tss {
for _, v := range ts.Values {
if math.IsNaN(v) {
continue
}
m[v] = true
}
}