Recorded Queries: Add frontend settings (#41841)

This commit is contained in:
Todd Treece
2021-11-17 22:45:05 +01:00
committed by GitHub
parent 6844cf57a0
commit 335e0cac11
+3
View File
@@ -299,6 +299,9 @@ func (hs *HTTPServer) getFrontendSettingsMap(c *models.ReqContext) (map[string]i
"caching": map[string]bool{
"enabled": hs.Cfg.SectionWithEnvOverrides("caching").Key("enabled").MustBool(true),
},
"recordedQueries": map[string]bool{
"enabled": hs.Cfg.SectionWithEnvOverrides("recorded_queries").Key("enabled").MustBool(false),
},
"unifiedAlertingEnabled": hs.Cfg.UnifiedAlerting.Enabled,
}