Update datadog agent 6 yaml to include dogstatsd_port by default
This change allows the dogstatsd_port attribute to be respected similar
to version 5 without having to use the extra_config attribute
MODIFY
spec/dd-agent_spec.rb
spec/dd-agent_spec.rb
@@ -1066,6 +1066,7 @@ describe 'datadog::dd-agent' do
log_file: "/var/log/datadog/agent.log"
log_level: "INFO"
dogstatsd_non_local_traffic: false
+ dogstatsd_port: 8125
apm_config:
apm_non_local_traffic: false
process_config:
@@ -1126,6 +1127,7 @@ describe 'datadog::dd-agent' do
hostname: "chef-nodename"
log_level: "INFO"
dogstatsd_non_local_traffic: false
+ dogstatsd_port: 8125
apm_config:
apm_non_local_traffic: false
process_config:
@@ -1187,6 +1189,7 @@ describe 'datadog::dd-agent' do
log_file: "/var/log/datadog/agent.log"
log_level: "INFO"
dogstatsd_non_local_traffic: false
+ dogstatsd_port: 8125
apm_config:
apm_non_local_traffic: false
process_config:
@@ -1244,6 +1247,7 @@ describe 'datadog::dd-agent' do
log_file: "/var/log/datadog/agent.log"
log_level: "INFO"
dogstatsd_non_local_traffic: false
+ dogstatsd_port: 8125
apm_config:
apm_non_local_traffic: false
process_config:

MODIFY
templates/default/datadog.yaml.erb
templates/default/datadog.yaml.erb
@@ -89,6 +89,7 @@ agent_config = @extra_config.merge({
histogram_aggregates: string_list_to_array(node['datadog']['histogram_aggregates']),
histogram_percentiles: string_list_to_array(node['datadog']['histogram_percentiles']),
use_dogstatsd: node['datadog']['dogstatsd'],
+ dogstatsd_port: node['datadog']['dogstatsd_port'],
statsd_metric_namespace: node['datadog']['statsd_metric_namespace'],
log_level: node['datadog']['log_level'],
cmd_port: node['datadog']['cmd_port'],

Update datadog agent 6 yaml to include dogstatsd_port by default (#828)

This change allows the dogstatsd_port attribute to be respected similar
to version 5 without having to use the extra_config attribute