mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Expose reporting-enabled flag to frontend (#46753)
This commit is contained in:
parent
4a568769e7
commit
560fc9812d
@ -107,6 +107,9 @@ export class GrafanaBootConfig implements GrafanaConfig {
|
||||
featureHighlights = {
|
||||
enabled: false,
|
||||
};
|
||||
reporting = {
|
||||
enabled: true,
|
||||
};
|
||||
|
||||
constructor(options: GrafanaBootConfig) {
|
||||
const mode = options.bootData.user.lightTheme ? 'light' : 'dark';
|
||||
|
@ -164,6 +164,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,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user