Skip measurements with NaN fields

fixes #389
This commit is contained in:
Cameron Sparr
2015-11-23 14:16:20 -07:00
parent 970bfce997
commit 317a352a65
2 changed files with 19 additions and 9 deletions

View File

@@ -87,7 +87,8 @@ func (g *Prometheus) gatherURL(url string, acc plugins.Accumulator) error {
}
tags[string(key)] = string(value)
}
acc.Add(string(sample.Metric[model.MetricNameLabel]), float64(sample.Value), tags)
acc.Add(string(sample.Metric[model.MetricNameLabel]),
float64(sample.Value), tags)
}
}