Skip to content

Commit

Permalink
Add missing options for rabbitmq collector
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Sep 17, 2015
1 parent 448e3a9 commit 63c80ea
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions templates/default/rabbitmq.yaml.erb
Expand Up @@ -6,10 +6,40 @@ instances:
- rabbitmq_api_url: <%= i['api_url'] %>
rabbitmq_user: <%= i['user'] || 'guest' %>
rabbitmq_pass: <%= i['pass'] || 'guest' %>
tags:
<% if i.key?('tags') -%>
<% i['tags'].each do |t| -%>
- <%= t %>
tags:
<% i['tags'].each do |x| -%>
- <%= x %>
<% end -%>
<% end -%>
<% if i.key?('nodes') -%>
nodes:
<% i['nodes'].each do |x| -%>
- <%= x %>
<% end -%>
<% end -%>
<% if i.key?('nodes_regexes') -%>
nodes_regexes:
<% i['nodes_regexes'].each do |x| -%>
- <%= x %>
<% end -%>
<% end -%>
<% if i.key?('queues') -%>
queues:
<% i['queues'].each do |x| -%>
- <%= x %>
<% end -%>
<% end -%>
<% if i.key?('queues_regexes') -%>
queues_regexes:
<% i['queues_regexes'].each do |x| -%>
- <%= x %>
<% end -%>
<% end -%>
<% if i.key?('vhosts') -%>
vhosts:
<% i['vhosts'].each do |x| -%>
- <%= x %>
<% end -%>
<% end -%>
<% end -%>
Expand Down

0 comments on commit 63c80ea

Please sign in to comment.