feat(alerting): Show/hide alerting UI using configuration variable
Use configuration variable "show_alerting_ui" to show/hide alerting UI
This commit is contained in:
@@ -149,7 +149,8 @@ var (
|
||||
Quota QuotaSettings
|
||||
|
||||
// Alerting
|
||||
ExecuteAlerts bool
|
||||
ExecuteAlerts bool
|
||||
ShowAlertingUI bool
|
||||
|
||||
// logger
|
||||
logger log.Logger
|
||||
@@ -573,6 +574,7 @@ func NewConfigContext(args *CommandLineArgs) error {
|
||||
|
||||
alerting := Cfg.Section("alerting")
|
||||
ExecuteAlerts = alerting.Key("execute_alerts").MustBool(true)
|
||||
ShowAlertingUI = alerting.Key("show_alerting_ui").MustBool(true)
|
||||
|
||||
readSessionConfig()
|
||||
readSmtpSettings()
|
||||
|
||||
Reference in New Issue
Block a user