mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
Use labels fp for sorting alerts
Labels fp is stable, contant fp will keep changing
This commit is contained in:
@@ -26,7 +26,7 @@ func (a AlertList) Less(i, j int) bool {
|
||||
if a[i].StartsAt.Before(a[j].StartsAt) {
|
||||
return false
|
||||
}
|
||||
return a[i].ContentFingerprint() < a[j].ContentFingerprint()
|
||||
return a[i].LabelsFingerprint() < a[j].LabelsFingerprint()
|
||||
}
|
||||
|
||||
// AlertGroup is vanilla Alertmanager group, but alerts are flattened
|
||||
|
||||
Reference in New Issue
Block a user