From f7fc4c00a3780bc9c002fea29e59fe54aaf859dc Mon Sep 17 00:00:00 2001 From: medcl Date: Wed, 25 Oct 2023 17:02:23 +0800 Subject: [PATCH] filter for only agent --- modules/agent/api/remote_config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/agent/api/remote_config.go b/modules/agent/api/remote_config.go index 68c1919c..e8f903f6 100644 --- a/modules/agent/api/remote_config.go +++ b/modules/agent/api/remote_config.go @@ -81,6 +81,10 @@ func remoteConfigProvider(instance model.Instance) []*common.ConfigFile { func dynamicAgentConfigProvider(instance model.Instance) []*common.ConfigFile { + if instance.Application.Name != "agent" { + return nil + } + //get config files from remote db //get settings with this agent id