diff --git a/collector/prometheus_collector.go b/collector/prometheus_collector.go index ca332d5921..9253a06d7c 100644 --- a/collector/prometheus_collector.go +++ b/collector/prometheus_collector.go @@ -17,6 +17,7 @@ package collector import ( "encoding/json" "io/ioutil" + "math" "net/http" "strconv" "strings" @@ -153,6 +154,9 @@ func (collector *PrometheusCollector) Collect(metrics map[string][]v1.MetricVal) if err != nil { errorSlice = append(errorSlice, err) } + if math.IsNaN(metVal) { + metVal = 0 + } metric := v1.MetricVal{ Label: metLabel,