adding optional nginx monitor attributes
MODIFY
recipes/nginx.rb
recipes/nginx.rb
@@ -16,7 +16,11 @@ include_recipe 'datadog::dd-agent'
# {
# 'nginx_status_url' => "https://localhost:82/nginx_status/",
# 'name' => ['test'],
-# 'ssl_validation' => false
+# 'ssl_validation' => false,
+# 'skip_proxy' => false,
+# 'use_plus_api' => false,
+# 'plus_api_version' => "2"
+# 'use_vts' => false
# }
# ]

MODIFY
templates/default/nginx.yaml.erb
templates/default/nginx.yaml.erb
@@ -6,6 +6,18 @@ instances:
<% unless i['ssl_validation'].nil? -%>
ssl_validation: <%= i['ssl_validation'] %>
<% end -%>
+ <% unless i['skip_proxy'].nil? -%>
+ skip_proxy: <%= i['skip_proxy'] %>
+ <% end -%>
+ <% unless i['use_plus_api'].nil? -%>
+ use_plus_api: <%= i['use_plus_api'] %>
+ <% end -%>
+ <% unless i['plus_api_version'].nil? -%>
+ plus_api_version: <%= i['plus_api_version'] %>
+ <% end -%>
+ <% unless i['use_vts'].nil? -%>
+ use_vts: <%= i['use_vts'] %>
+ <% end -%>
<%# don't print user/password if either is nil -%>
<% unless i['user'].nil? || i['password'].nil? -%>
user: <%= i['user'] %>

adding optional nginx monitor attributes