Skip to content

Commit

Permalink
Merge pull request #27 from DataDog/dogstatsd-attributes
Browse files Browse the repository at this point in the history
Allow dogstatsd to be turned off or configured.
  • Loading branch information
alq666 committed Nov 1, 2012
2 parents f0203f8 + da54faa commit 0f37f25
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions attributes/default.rb
Expand Up @@ -61,6 +61,10 @@
default['datadog']['graphite'] = false
default['datadog']['graphite_port'] = 17124

# Start dogstatsd by default
default['datadog']['dogstatsd'] = true
default['datadog']['dogstatsd_port'] = 8125
default['datadog']['dogstatsd_interval'] = 10

##
# Service specific attributes, use override in node/role configuration
Expand Down
15 changes: 15 additions & 0 deletions templates/default/datadog.conf.erb
Expand Up @@ -20,6 +20,21 @@ tags: <%= node['datadog']['tags'] %>
graphite_listen_port: <%= node['datadog']['graphite_port'] %>
<% end %>
<% if node['datadog']['dogstatsd'] %>
# ========================================================================== #
# DogStatsd configuration #
# ========================================================================== #

# DogStatsd is a small server that aggregates your custom app metrics. For
# usage information, check out http://docs.datadoghq.com

# Make sure your client is sending to the same port.
dogstatsd_port : <%= node['datadog']['dogstatsd_port'] %>

## The dogstatsd flush period.
dogstatsd_interval : <%= node['datadog']['dogstatsd_interval'] %>
<% end %>

##
# service defaults
##
Expand Down

0 comments on commit 0f37f25

Please sign in to comment.