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

Version Path
kurchatov-0.4.7 examples/sidekiq.rb
kurchatov-0.4.6 examples/sidekiq.rb
kurchatov-0.4.5 examples/sidekiq.rb
kurchatov-0.4.4 examples/sidekiq.rb
kurchatov-0.4.3 examples/sidekiq.rb
kurchatov-0.4.2 examples/sidekiq.rb
kurchatov-0.4.1 examples/sidekiq.rb
kurchatov-0.3.8 examples/sidekiq.rb
kurchatov-0.3.7 examples/sidekiq.rb
kurchatov-0.3.6 examples/sidekiq.rb
kurchatov-0.3.5 examples/sidekiq.rb
kurchatov-0.3.4 examples/sidekiq.rb
kurchatov-0.3.3 examples/sidekiq.rb
kurchatov-0.3.2 examples/sidekiq.rb
kurchatov-0.3.1 examples/sidekiq.rb
kurchatov-0.3.0 examples/sidekiq.rb
kurchatov-0.2.9 examples/sidekiq.rb
kurchatov-0.2.8 examples/sidekiq.rb
kurchatov-0.2.7 examples/sidekiq.rb
kurchatov-0.2.6 examples/sidekiq.rb