rename mapkey alertname to rulename

This commit is contained in:
Ulric Qin 2022-07-07 10:06:34 +08:00
parent 18a9288b75
commit 8fe548aba9
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func matchMute(event *models.AlertCurEvent, mute *models.AlertMute, clock ...int
return false
}
tg := event.TagsMap
tg["alertname"] = event.RuleName
tg["rulename"] = event.RuleName
return matchTags(tg, mute.ITags)
}