mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(backend): don't skip labels with variants == groups
This commit is contained in:
committed by
Łukasz Mierzwa
parent
7a71113d3f
commit
bdb80960a6
@@ -325,7 +325,8 @@ func autoGridLabel(dedupedAlerts []models.AlertGroup) string {
|
||||
var lastLabel string
|
||||
var lastCnt int
|
||||
for key, uniqueValues := range candidates {
|
||||
if uniqueValues == 1 || uniqueValues == alertsCount || uniqueValues == alertGroupsCount {
|
||||
if uniqueValues == 1 || uniqueValues == alertsCount {
|
||||
log.Debug().Int("variants", uniqueValues).Int("alerts", alertsCount).Int("groups", alertGroupsCount).Str("label", key).Msg("Excluding label from automatic grid selection")
|
||||
continue
|
||||
}
|
||||
log.Debug().Int("variants", uniqueValues).Str("label", key).Msg("Automatic grid label candidate")
|
||||
|
||||
Reference in New Issue
Block a user