send agent events to stats/thresholds w/ ProcessTime

applies only to template-based agents
This commit is contained in:
ionutboangiu
2025-06-04 19:55:50 +03:00
committed by Dan Christian Bogos
parent 9b706f57ac
commit 671c7474b8
10 changed files with 180 additions and 26 deletions

View File

@@ -71,8 +71,9 @@ func (ha *HTTPAgent) Start() (err error) {
utils.Logger.Info(fmt.Sprintf("<%s> successfully started HTTPAgent", utils.HTTPAgent))
for _, agntCfg := range ha.cfg.HTTPAgentCfg() {
ha.server.RegisterHttpHandler(agntCfg.URL,
agents.NewHTTPAgent(ha.connMgr, agntCfg.SessionSConns, filterS,
ha.cfg.GeneralCfg().DefaultTenant, agntCfg.RequestPayload,
agents.NewHTTPAgent(ha.connMgr,
agntCfg.SessionSConns, agntCfg.StatSConns, agntCfg.ThresholdSConns,
filterS, ha.cfg.GeneralCfg().DefaultTenant, agntCfg.RequestPayload,
agntCfg.ReplyPayload, agntCfg.RequestProcessors))
}
ha.Unlock()