提交 bd84c433 编写于 作者: U UlricQin

set alias blank if __alias__ not found

上级 238a611c
......@@ -39,6 +39,8 @@ func Push(points []*vos.MetricPoint) error {
// 如果tags中发现有__ident__和__alias__就提到外层,这个逻辑是为了应对snmp之类的场景
if val, has := points[i].TagsMap["__ident__"]; has {
points[i].Ident = val
// 如果后面没有发现__alias__,那alias就给改成空
points[i].Alias = ""
delete(points[i].TagsMap, "__ident__")
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册