Skip to content

Commit

Permalink
Support jmx_custom_jars datadog.conf option
Browse files Browse the repository at this point in the history
As remediation for DataDog support ticket #209172, I was pointed at
DataDog/dd-agent/pull/3648 to set `jmx_custom_jars` in `datadog.conf`,
which is not supported by the current template. Patch the template to
support this option.

Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 committed Mar 18, 2019
1 parent 02b51ae commit 6e209d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/default/datadog.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ sd_template_dir: <%= node['datadog']['sd_template_dir'] %>

# Enable JMX checks for service discovery
sd_jmx_enable: <%= node['datadog']['sd_jmx_enable'] %>
<% if node['datadog']['jmx_custom_jars'] %>
# If you require custom jars to be loaded for JMX checks, you can set their paths here
# instead of setting them in the checks' custom_jar_paths option
jmx_custom_jars: <%= node['datadog']['jmx_custom_jars'] %>
<% end -%>
<% end -%>
<% if node['datadog']['dogstatsd'] -%>
Expand Down

0 comments on commit 6e209d1

Please sign in to comment.