Skip to content

Commit

Permalink
Really fix the notification log getting the wrong state (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
gotjosh authored Jan 24, 2023
1 parent 5ebb70a commit c6a7791
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alerting/grafana_alertmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func NewGrafanaAlertmanager(tenantKey string, tenantID int64, config *GrafanaAle
SnapshotFile: config.Nflog.Filepath(),
Retention: config.Nflog.Retention(),
Logger: logger,
Metrics: m.Registerer,
})

if err != nil {
Expand All @@ -225,7 +226,7 @@ func NewGrafanaAlertmanager(tenantKey string, tenantID int64, config *GrafanaAle
level.Error(am.logger).Log("notification log garbage collection", "err", err)
}

return config.Nflog.MaintenanceFunc(am.silences)
return config.Nflog.MaintenanceFunc(am.notificationLog)
})
am.wg.Done()
}()
Expand Down

0 comments on commit c6a7791

Please sign in to comment.