func (a *App) initializeMonitoringManager(config conf.MonitoringDBconfig) error { if manager, err := monitoring.InitMonitoringManager(config.ManagerName, config.ConfigFilePath); err != nil { logger.Get().Error("Error initializing the monitoring manager: %v", err) return err } else { MonitoringManager = manager return nil } }
func InitMonitoringManager() error { monitoringConfig := conf.SystemConfig.TimeSeriesDBConfig if manager, err := skyring_monitoring.InitMonitoringManager(monitoringConfig.ManagerName, monitoringConfig.ConfigFilePath); err != nil { return err } else { MonitoringManager = manager } return nil }