Skip to content

Commit

Permalink
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
@@ -63,6 +63,10 @@
# to the /tmp/ directory.
default['datadog']['debug'] = false

# Default to false to non_local_traffic
# See: https://github.com/DataDog/dd-agent/wiki/Network-Traffic-and-Proxy-Configuration
default['datadog']['non_local_traffic'] = false

# How often you want the agent to collect data, in seconds. Any value between
# 15 and 60 is a reasonable interval.
default['datadog']['check_freq'] = 15
4 changes: 4 additions & 0 deletions templates/default/datadog.conf.erb
Original file line number Diff line number Diff line change
@@ -16,6 +16,10 @@ proxy_user: <%= node['datadog']['web_proxy']['user'] %>
proxy_password: <%= node['datadog']['web_proxy']['password'] %>
<% end -%>

<% if node['datadog']['non_local_traffic'] == true %>
non_local_traffic: true
<% end -%>

<% if !node['datadog']['dogstreams'].empty? -%>
dogstreams: <%= node['datadog']['dogstreams'].join(', ') %>
<% end -%>

0 comments on commit 1457172

Please sign in to comment.