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:
smalik
2017-01-20 10:43:29 -05:00
parent e5a6c523d7
commit 9862c9ff40
5 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -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()