Skip to content

Commit

Permalink
Merge pull request #148 from jblancett/bind_host
Browse files Browse the repository at this point in the history
add bind_host attribute
  • Loading branch information
miketheman committed Dec 31, 2014
2 parents 5e3359e + 2d9ffd8 commit 46a82fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
# See: https://github.com/DataDog/dd-agent/wiki/Network-Traffic-and-Proxy-Configuration
default['datadog']['non_local_traffic'] = false

# The loopback address the Forwarder and Dogstatsd will bind.
default['datadog']['bind_host'] = 'localhost'

# 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
1 change: 1 addition & 0 deletions templates/default/datadog.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ check_freq: <%= node['datadog']['check_freq'] %>
hostname: <%= node['datadog']['hostname'] %>
use_mount: <%= node['datadog']['use_mount'] ? "yes" : "no" %>
listen_port: <%= node['datadog']['agent_port'] %>
bind_host: <%= node['datadog']['bind_host'] %>
<% if node['datadog']['autorestart'] -%>
autorestart: <%= node['datadog']['autorestart'] %>
<% end -%>
Expand Down

0 comments on commit 46a82fe

Please sign in to comment.