Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save whereismyjetpack/f56ec29c592cd86a8e041fb2824b466c to your computer and use it in GitHub Desktop.
Save whereismyjetpack/f56ec29c592cd86a8e041fb2824b466c to your computer and use it in GitHub Desktop.
class QueueLatencyCheck < OkComputer::Check
def check
@failures = nil
@message = Hash.new
queues = Sidekiq::Queue.all
binding.pry
queues.each do |q|
OkComputer::Registry.register "sidekiq_#{q.name}", OkComputer::SidekiqLatencyCheck.new("#{q.name}")
# latency(q.name)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment