Sha256: 6c46b42ef3bba21aaa076da823bfd006743c4b0308d050867d6fb4010a51c6fd
Contents?: true
Size: 515 Bytes
Versions: 51
Compression:
Stored size: 515 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
51 entries across 51 versions & 1 rubygems