Recorded Queries: Add frontend settings (#41841)

This commit is contained in:
Todd Treece 2021-11-17 16:45:05 -05:00 committed by GitHub
parent 6844cf57a0
commit 335e0cac11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,
}