mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
querier for RestoreForState not closed. (#4922)
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
This commit is contained in:
parent
c6399296dc
commit
0754e5334b
|
@ -490,6 +490,7 @@ func (g *Group) RestoreForState(ts time.Time) {
|
||||||
level.Error(g.logger).Log("msg", "Failed to get Querier", "err", err)
|
level.Error(g.logger).Log("msg", "Failed to get Querier", "err", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
defer q.Close()
|
||||||
|
|
||||||
for _, rule := range g.Rules() {
|
for _, rule := range g.Rules() {
|
||||||
alertRule, ok := rule.(*AlertingRule)
|
alertRule, ok := rule.(*AlertingRule)
|
||||||
|
|
Loading…
Reference in a new issue