提交 04e6f36c 编写于 作者: U Ulric Qin

ignore invalid metric

上级 6907ffa5
......@@ -33,7 +33,8 @@ func Push(metricItems []*dataobj.MetricValue) error {
if err != nil {
msg := fmt.Errorf("metric:%v err:%v", item, err)
logger.Warning(msg)
return msg
// 如果数据有问题,直接跳过吧,比如mymon采集的到的数据,其实只有一个有问题,剩下的都没问题
continue
}
if item.CounterType == dataobj.COUNTER {
if err := CounterToGauge(item); err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册