extract ident from append tags

This commit is contained in:
Ulric Qin 2022-09-02 12:19:34 +08:00
parent fc4c4b96bf
commit 01aea821b9
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ func (r *RuleEval) MakeNewEvent(from string, now int64, clusterName string, vect
tagsMap["rulename"] = r.rule.Name tagsMap["rulename"] = r.rule.Name
// handle target note // handle target note
targetIdent, has := vectors[i].Labels["ident"] targetIdent, has := tagsMap["ident"]
targetNote := "" targetNote := ""
if has { if has {
target, exists := memsto.TargetCache.Get(string(targetIdent)) target, exists := memsto.TargetCache.Get(string(targetIdent))