Skip to content

Commit

Permalink
expose histogram settings as node attributes (#272)
Browse files Browse the repository at this point in the history
Summary:
This exposes the settings for histograms as node attributes. This should
allow different nodes to set 0.99 percentiles and other custom settings.

These attributes are pulled from:
https://github.com/DataDog/dd-agent/blob/master/datadog.conf.example#L97
  • Loading branch information
SupermanScott authored and miketheman committed Apr 16, 2016
1 parent 9c105df commit 689d3d4
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 @@ -164,6 +164,10 @@
default['datadog']['statsd_forward_port'] = 8125
default['datadog']['statsd_metric_namespace'] = nil

# Histogram settings
default['datadog']['histogram_aggregates'] = 'max, median, avg, count'
default['datadog']['histogram_percentiles'] = '0.95'

# For service-specific configuration, use the integration recipes included
# in this cookbook, and apply them to the appropirate node's run list.
# Read more at http://docs.datadoghq.com/
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 @@ -50,6 +50,10 @@ agent_checks_interval: <%= node['datadog']['agent_checks_interval'] %>
graphite_listen_port: <%= node['datadog']['graphite_port'] %>
<% end -%>

## Histogram settings
histogram_aggregates: <%= node['datadog']['histogram_aggregates'] %>
histogram_percentiles: <%= node['datadog']['histogram_percentiles'] %>
<% if node['datadog']['dogstatsd'] -%>
# ========================================================================== #
# DogStatsd configuration #
Expand Down

0 comments on commit 689d3d4

Please sign in to comment.