Skip to content

Instantly share code, notes, and snippets.

@benedikt
Last active October 12, 2018 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benedikt/f9cf9043a630718e0e53983e3a073e31 to your computer and use it in GitHub Desktop.
Save benedikt/f9cf9043a630718e0e53983e3a073e31 to your computer and use it in GitHub Desktop.
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