Expose reporting-enabled flag to frontend (#46753)

This commit is contained in:
Jesse Weaver
2022-04-06 11:39:49 +02:00
committed by GitHub
parent 068d153282
commit 8f035ba648
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -98,6 +98,9 @@ export class GrafanaBootConfig implements GrafanaConfig {
featureHighlights = {
enabled: false,
};
reporting = {
enabled: true,
};
constructor(options: GrafanaBootConfig) {
const mode = options.bootData.user.lightTheme ? 'light' : 'dark';
+3
View File
@@ -272,6 +272,9 @@ func (hs *HTTPServer) getFrontendSettingsMap(c *models.ReqContext) (map[string]i
"recordedQueries": map[string]bool{
"enabled": hs.Cfg.SectionWithEnvOverrides("recorded_queries").Key("enabled").MustBool(true),
},
"reporting": map[string]bool{
"enabled": hs.Cfg.SectionWithEnvOverrides("reporting").Key("enabled").MustBool(true),
},
"unifiedAlertingEnabled": hs.Cfg.UnifiedAlerting.Enabled,
}