LN0739_FM_FR13: support interface to external Prometheus alert manager
Change-Id: I886a3f68121686d9a0f9751f4b3e1c146e0c529c
Signed-off-by: Anssi Mannila <anssi.mannila@nokia.com>
diff --git a/manager/cmd/manager.go b/manager/cmd/manager.go
index 9a42187..59beeac 100755
--- a/manager/cmd/manager.go
+++ b/manager/cmd/manager.go
@@ -212,9 +212,13 @@
a.maxActiveAlarms = app.Config.GetInt("controls.maxActiveAlarms")
a.maxAlarmHistory = app.Config.GetInt("controls.maxAlarmHistory")
+ a.alertInterval = viper.GetInt("controls.promAlertManager.alertInterval")
+ a.amHost = viper.GetString("controls.promAlertManager.address")
app.Logger.Debug("ConfigChangeCB: maxActiveAlarms %v", a.maxActiveAlarms)
app.Logger.Debug("ConfigChangeCB: maxAlarmHistory = %v", a.maxAlarmHistory)
+ app.Logger.Debug("ConfigChangeCB: alertInterval %v", a.alertInterval)
+ app.Logger.Debug("ConfigChangeCB: amHost = %v", a.amHost)
return
}