Alerting: Fix migration to not add label "alertname" (#56509)
* do not add label alertname because it is overridden in state manager anyway * update state manager to not consider labels with same value as dupe
This commit is contained in:
@@ -100,7 +100,6 @@ func addMigrationInfo(da *dashAlert) (map[string]string, map[string]string) {
|
||||
func (m *migration) makeAlertRule(cond condition, da dashAlert, folderUID string) (*alertRule, error) {
|
||||
lbls, annotations := addMigrationInfo(&da)
|
||||
name := normalizeRuleName(da.Name)
|
||||
lbls["alertname"] = name
|
||||
annotations["message"] = da.Message
|
||||
var err error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user