Skip to content

Instantly share code, notes, and snippets.

@benedikt benedikt/appsignal.rb
Last active Oct 12, 2018

Embed
What would you like to do?
Sidekiq Queue Sizes in AppSignal
# Be sure to also enable minutely probes. For example by setting APPSIGNAL_ENABLE_MINUTELY_PROBES=true
require 'sidekiq/api'
class Appsignal::SidekiqProbe
def call
Sidekiq::Queue.all.each do |queue|
Appsignal.set_gauge("sidekiq.queues.#{queue.name}", queue.size)
end
end
end
Appsignal::Minutely.probes << Appsignal::SidekiqProbe.new
-
title: 'Sidekiq Dashboard'
graphs:
-
title: 'Queue Sizes'
kind: gauge
format: number
filter: 'sidekiq.queues.*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.