Alerting: Add support for Alert State History Loki primary (#69065)

add support for multiple ash targets with loki as primary
This commit is contained in:
Gilles De Mey
2023-05-25 16:09:44 +03:00
committed by GitHub
parent c045fcbf69
commit 73681a251e
5 changed files with 21 additions and 5 deletions
+1
View File
@@ -236,6 +236,7 @@ func (hs *HTTPServer) getFrontendSettings(c *contextmodel.ReqContext) (*dtos.Fro
if hs.Cfg.UnifiedAlerting.StateHistory.Enabled {
frontendSettings.UnifiedAlerting.AlertStateHistoryBackend = hs.Cfg.UnifiedAlerting.StateHistory.Backend
frontendSettings.UnifiedAlerting.AlertStateHistoryPrimary = hs.Cfg.UnifiedAlerting.StateHistory.MultiPrimary
}
if hs.Cfg.UnifiedAlerting.Enabled != nil {