Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the option for stats metric namespace. #250

Merged
merged 1 commit into from Apr 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions attributes/default.rb
Expand Up @@ -159,6 +159,7 @@
default['datadog']['dogstatsd_normalize'] = 'yes'
default['datadog']['statsd_forward_host'] = nil
default['datadog']['statsd_forward_port'] = 8125
default['datadog']['statsd_metric_namespace'] = nil

# 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
Expand Up @@ -71,6 +71,10 @@ dogstatsd_normalize: <%= node['datadog']['dogstatsd_normalize'] %>
statsd_forward_host: <%= node['datadog']['statsd_forward_host'] %>
statsd_forward_port: <%= node['datadog']['statsd_forward_port'] %>
<% end -%>

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

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