Skip to content

Commit

Permalink
added additional_metrics and collections parameters to mongo template (
Browse files Browse the repository at this point in the history
  • Loading branch information
bennevans authored and olivielpeau committed Sep 28, 2017
1 parent 2669999 commit ed46b65
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion templates/default/mongo.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ instances:
ssl_certfile: <%= i['ssl_certfile'] %>
ssl_keyfile: <%= i['ssl_keyfile'] %>
<% end %>
<% if i.key?('additional_metrics') -%>
additional_metrics:
<% i['additional_metrics'].each do |t| %>
- <%= t %>
<%end -%>
<% end %>
<% if i.key?('collections') -%>
collections:
<% i['collections'].each do |t| %>
- <%= t %>
<%end -%>
<% end %>
<% end -%>

init_config:
# No init_config details needed
# No init_config details needed

0 comments on commit ed46b65

Please sign in to comment.