add enable_conntrack config
MODIFY
.kitchen.yml
.kitchen.yml
@@ -84,6 +84,7 @@ suites:
sysprobe_socket: /opt/datadog-agent/run/sysprobe.sock
debug_port: 7654
bpf_debug: true
+ enable_conntrack: true
- name: dd-handler
run_list:

MODIFY
attributes/default.rb
attributes/default.rb
@@ -366,6 +366,7 @@ default['datadog']['system_probe']['sysprobe_socket'] = '/opt/datadog-agent/run/
# debug_port is the http port for expvar, it is disabled if not specified
default['datadog']['system_probe']['debug_port'] = nil
default['datadog']['system_probe']['bpf_debug'] = false
+default['datadog']['system_probe']['enable_conntrack'] = false
# Logs functionality settings (Agent 6 only)
# Set `enable_logs_agent` to:

MODIFY
recipes/system-probe.rb
recipes/system-probe.rb
@@ -18,7 +18,8 @@ if node['datadog']['agent6']
enabled: node['datadog']['system_probe']['enabled'],
sysprobe_socket: node['datadog']['system_probe']['sysprobe_socket'],
debug_port: node['datadog']['system_probe']['debug_port'],
- bpf_debug: node['datadog']['system_probe']['bpf_debug']
+ bpf_debug: node['datadog']['system_probe']['bpf_debug'],
+ enable_conntrack: node['datadog']['system_probe']['enable_conntrack']
)
owner 'dd-agent'
group 'root'

MODIFY
templates/default/system_probe.yaml.erb
templates/default/system_probe.yaml.erb
@@ -6,6 +6,7 @@ system_probe_config = {
sysprobe_socket: node['datadog']['system_probe']['sysprobe_socket'],
debug_port: node['datadog']['system_probe']['debug_port'],
bpf_debug: node['datadog']['system_probe']['bpf_debug'],
+ enable_conntrack: node['datadog']['system_probe']['enable_conntrack'],
}
}
-%>

add enable_conntrack config