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

Version Path
kurchatov-0.0.5.pre5 examples/sidekiq.rb
kurchatov-0.0.5.pre4 examples/sidekiq.rb
kurchatov-0.0.5.pre2 examples/sidekiq.rb
kurchatov-0.0.5.pre1 examples/sidekiq.rb
kurchatov-0.0.4 examples/sidekiq.rb
kurchatov-0.0.4d examples/sidekiq.rb
kurchatov-0.0.4c examples/sidekiq.rb
kurchatov-0.0.4b examples/sidekiq.rb
kurchatov-0.0.3 examples/sidekiq.rb
kurchatov-0.0.3b examples/sidekiq.rb
kurchatov-0.0.3a examples/sidekiq.rb
kurchatov-0.0.2 examples/sidekiq.rb
kurchatov-0.0.2b examples/sidekiq.rb
kurchatov-0.0.1 examples/sidekiq.rb