mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Avoid panic by not loading instances without a rule (#33597)
This commit is contained in:
parent
528edcaec6
commit
c2a5da79e3
@ -373,6 +373,7 @@ func (sch *schedule) WarmStateCache(st *state.Manager) {
|
|||||||
ruleForEntry, ok := ruleByUID[entry.RuleDefinitionUID]
|
ruleForEntry, ok := ruleByUID[entry.RuleDefinitionUID]
|
||||||
if !ok {
|
if !ok {
|
||||||
sch.log.Error("rule not found for instance, ignoring", "rule", entry.RuleDefinitionUID)
|
sch.log.Error("rule not found for instance, ignoring", "rule", entry.RuleDefinitionUID)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
lbs := map[string]string(entry.Labels)
|
lbs := map[string]string(entry.Labels)
|
||||||
|
Loading…
Reference in New Issue
Block a user