Sha256: 8b4f5bb294227d0626ac68dad435b6c5e8bbcde00ed05b1bd36096038a49814c
Contents?: true
Size: 507 Bytes
Versions: 14
Compression:
Stored size: 507 Bytes
Contents
default[:api_url] = 'http://admin:admin@127.0.0.1:55672/api' default[:vhost] = ['notexists'] collect do plugin.vhosts.each do |vhost| vhost_uri = "#{plugin.api_url}/queues/#{CGI.escape(vhost)}" JSON.parse(rest_get(vhost_uri)).each do |queue| event( :service => "rabbitmq queue #{queue['name'].gsub('.', '_')} messages count", :metric => queue['messages'].to_i, :desc => "Rabbitmq queue count in #{queue['name']}", :critical => 1000 ) end end end
Version data entries
14 entries across 14 versions & 1 rubygems