Skip to content

Commit

Permalink
Merge pull request #117 from ctrlok/master
Browse files Browse the repository at this point in the history
adding support for statsd forwarding
  • Loading branch information
miketheman committed Dec 31, 2014
2 parents 575d456 + 0e0700e commit 0555923
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@
default['datadog']['dogstatsd_port'] = 8125
default['datadog']['dogstatsd_interval'] = 10
default['datadog']['dogstatsd_normalize'] = 'yes'
default['datadog']['statsd_forward_host'] = nil
default['datadog']['statsd_forward_port'] = 8125

# For service-specific configuration, use the integration recipes included
# in this cookbook, and apply them to the appropirate node's run list.
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 @@ -48,6 +48,10 @@ dogstatsd_interval: <%= node['datadog']['dogstatsd_interval'] %>
## If 'yes', counters and rates will be normalized to 1 second (that is divided
## by the dogstatsd_interval) before being sent to the server. Defaults to 'yes'
dogstatsd_normalize: <%= node['datadog']['dogstatsd_normalize'] %>
<% if node['datadog']['statsd_forward_host'] -%>
statsd_forward_host: <%= node['datadog']['statsd_forward_host'] %>
statsd_forward_port: <%= node['datadog']['statsd_forward_port'] %>
<% end -%>
<% end -%>

# ========================================================================== #
Expand Down

0 comments on commit 0555923

Please sign in to comment.