Skip to content

Commit

Permalink
Use the string representation of the labels instead of the hash
Browse files Browse the repository at this point in the history
Signed-off-by: gotjosh <josue.abreu@gmail.com>
  • Loading branch information
gotjosh committed Apr 24, 2024
1 parent f22bb88 commit dbfe392
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rules/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,15 +679,15 @@ func (g *Group) RestoreForState(ts time.Time) {
continue
}

result := map[uint64]storage.Series{}
result := map[string]storage.Series{}
for sset.Next() {
result[sset.At().Labels().DropMetricName().Hash()] = sset.At()
result[sset.At().Labels().DropMetricName().String()] = sset.At()
}

alertRule.ForEachActiveAlert(func(a *Alert) {
var s storage.Series

s, ok := result[a.Labels.Hash()]
s, ok := result[a.Labels.String()]
if !ok {
return
}
Expand Down

0 comments on commit dbfe392

Please sign in to comment.