mirror of
https://github.com/prometheus/prometheus
synced 2025-02-05 22:56:13 +00:00
Use the string representation of the labels instead of the hash
Signed-off-by: gotjosh <josue.abreu@gmail.com>
This commit is contained in:
parent
276201598c
commit
fa75985c1c
@ -681,15 +681,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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user