implement config object for prometheus_agent

This commit is contained in:
ionutboangiu
2025-03-27 16:13:39 +02:00
committed by Dan Christian Bogos
parent 19f39945d9
commit 531a752078
9 changed files with 449 additions and 230 deletions

View File

@@ -202,6 +202,8 @@ func (srvMngr *ServiceManager) handleReload() {
go srvMngr.reloadService(utils.DiameterAgent)
case <-srvMngr.GetConfig().GetReloadChan(config.HttpAgentJson):
go srvMngr.reloadService(utils.HTTPAgent)
case <-srvMngr.GetConfig().GetReloadChan(config.PrometheusAgentJSON):
go srvMngr.reloadService(utils.PrometheusAgent)
case <-srvMngr.GetConfig().GetReloadChan(config.LoaderJson):
go srvMngr.reloadService(utils.LoaderS)
case <-srvMngr.GetConfig().GetReloadChan(config.AnalyzerCfgJson):