filter Inf data
This commit is contained in:
parent
b946b9bbb9
commit
0f19e0ce7e
|
@ -408,7 +408,7 @@ func (engine *Engine) CheckCondition(rule *alerting.Rule)(*alerting.ConditionRes
|
||||||
return conditionResult, err
|
return conditionResult, err
|
||||||
}
|
}
|
||||||
if r, ok := result.(float64); ok {
|
if r, ok := result.(float64); ok {
|
||||||
if math.IsNaN(r){
|
if math.IsNaN(r) || math.IsInf(r, 0){
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue