Sha256: e08d8ece98692f7577bce5b8165d55b2c12f486fe5c79959ca5dac11c60f65af
Contents?: true
Size: 574 Bytes
Versions: 14
Compression:
Stored size: 574 Bytes
Contents
default[:url] = 'http://localhost/admin/sidekiq/dashboard/stats' collect do stats = JSON.parse(rest_get(plugin.url)) stats = stats["sidekiq"] ? stats["sidekiq"] : stats event( :service => "#{name} #{plugin.url}", :metric => stats["enqueued"].to_i, :description => "sidekiq queue from #{plugin.url}", :warning => 10, :critical => 60 ) event( :service => "#{name} #{plugin.url}", :metric => stats["failed"].to_i, :diff => true, :description => "sidekiq failed from #{plugin.url}", :warning => 10, :critical => 60 ) end
Version data entries
14 entries across 14 versions & 1 rubygems