Skip to content

Commit

Permalink
Merge pull request #563 from wolf31o2/configure-sd-jmx-enable
Browse files Browse the repository at this point in the history
Make sd_jmx_enable configurable
  • Loading branch information
remeh authored Feb 18, 2019
2 parents e8daf5d + 786fcf6 commit 25f2387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@
default['datadog']['sd_backend_port'] = 4001
default['datadog']['sd_config_backend'] = 'etcd'
default['datadog']['sd_template_dir'] = '/datadog/check_configs'
default['datadog']['sd_jmx_enable'] = 'no'
default['datadog']['service_discovery_backend'] = nil

# Trace functionality settings
Expand Down
3 changes: 3 additions & 0 deletions templates/default/datadog.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ sd_backend_port: <%= node['datadog']['sd_backend_port'] %>
# `/datadog/check_configs` key in the back-end. If you wish otherwise, uncomment this option
# and modify its value.
sd_template_dir: <%= node['datadog']['sd_template_dir'] %>

# Enable JMX checks for service discovery
sd_jmx_enable: <%= node['datadog']['sd_jmx_enable'] %>
<% end -%>
<% if node['datadog']['dogstatsd'] -%>
Expand Down

0 comments on commit 25f2387

Please sign in to comment.