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