Skip to content

Commit

Permalink
Merge pull request #100 from coosh/non-local-traffic
Browse files Browse the repository at this point in the history
Add support for non_local_traffic
  • Loading branch information
miketheman committed Mar 20, 2014
2 parents 7d2d3e2 + df3b691 commit 1457172
Show file tree
Hide file tree
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
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions templates/default/datadog.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%>
Expand Down

0 comments on commit 1457172

Please sign in to comment.