Skip to content

Commit

Permalink
[usm] service discovery, add ignored services 'security-agent' and 's…
Browse files Browse the repository at this point in the history
…ystem-probe' to system-probe config (#30927)
  • Loading branch information
yuri-lipnesh authored Nov 10, 2024
1 parent 55d2688 commit cf76f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func TestConfigIgnoredServices(t *testing.T) {
discovery := newDiscovery()
require.NotEmpty(t, discovery)

assert.Equal(t, len(discovery.config.ignoreServices), 4)
assert.Equal(t, len(discovery.config.ignoreServices), 6)
})

t.Run("check services in env variable", func(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/setup/system_probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ func InitSystemProbeConfig(cfg pkgconfigmodel.Config) {
cfg.BindEnvAndSetDefault(join(discoveryNS, "enabled"), false)
cfg.BindEnvAndSetDefault(join(discoveryNS, "cpu_usage_update_delay"), "60s")
cfg.BindEnvAndSetDefault(join(discoveryNS, "ignored_command_names"), []string{"chronyd", "cilium-agent", "containerd", "dhclient", "dockerd", "kubelet", "livenessprobe", "local-volume-pr", "sshd", "systemd"})
cfg.BindEnvAndSetDefault(join(discoveryNS, "ignored_services"), []string{"datadog-agent", "trace-agent", "process-agent", "datadog-cluster-agent"})
cfg.BindEnvAndSetDefault(join(discoveryNS, "ignored_services"), []string{"datadog-agent", "trace-agent", "process-agent", "system-probe", "security-agent", "datadog-cluster-agent"})

// Fleet policies
cfg.BindEnv("fleet_policies_dir")
Expand Down

0 comments on commit cf76f8b

Please sign in to comment.