diff --git a/attributes/default.rb b/attributes/default.rb index 39b51df2..7a38abbe 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -99,6 +99,9 @@ # log-parsing configuration default['datadog']['dogstreams'] = [] +# custom emitter configuration +default['datadog']['custom_emitters'] = [] + # Logging configuration default['datadog']['syslog']['active'] = false default['datadog']['syslog']['udp'] = false diff --git a/templates/default/datadog.conf.erb b/templates/default/datadog.conf.erb index 21f2c090..1f7d980c 100644 --- a/templates/default/datadog.conf.erb +++ b/templates/default/datadog.conf.erb @@ -27,6 +27,14 @@ non_local_traffic: true dogstreams: <%= node['datadog']['dogstreams'].join(', ') %> <% end -%> +<% if !node['datadog']['custom_emitters'].empty? -%> +custom_emitters: <%= node['datadog']['custom_emitters'].join(', ') %> +<% end -%> + +<% if node['datadog']['agent_checks_interval'] -%> +agent_checks_interval: <%= node['datadog']['agent_checks_interval'] %> +<% end -%> + <% if node['datadog']['graphite'] -%> graphite_listen_port: <%= node['datadog']['graphite_port'] %> <% end -%>