Last active
October 12, 2018 13:23
-
-
Save benedikt/f9cf9043a630718e0e53983e3a073e31 to your computer and use it in GitHub Desktop.
Sidekiq Queue Sizes in AppSignal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- | |
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