示例#1
0
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
	}
}
示例#2
0
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
}