class SidekiqMonitoring
Constants
- STATUS_LIST
- VERSION
Public Class Methods
elapsed_thresholds=(elapsed_thresholds)
click to toggle source
NOTE: « elapsed_thresholds » are the thresholds about the elapsed time of a job in a queue (while processing)
# File lib/sidekiq-monitoring.rb, line 23 def self.elapsed_thresholds=(elapsed_thresholds) @@elapsed_thresholds = elapsed_thresholds end
latency_thresholds=(latency_thresholds)
click to toggle source
NOTE: « latency_thresholds » are the thresholds about the latency, difference of time between job pushed/enqueued (field 'enqueued_at') and job pulled/processed by the queue
# File lib/sidekiq-monitoring.rb, line 17 def self.latency_thresholds=(latency_thresholds) @@latency_thresholds = latency_thresholds end
queue_size_thresholds=(queue_size_thresholds)
click to toggle source
Set your down thresholds configuration {'default' => [ 1_000, 2_000 ], 'low' => [ 10_000, 20_000 ] }
NOTE: « queue_size_thresholds » are the thresholds about the number of job in a queue
# File lib/sidekiq-monitoring.rb, line 10 def self.queue_size_thresholds=(queue_size_thresholds) @@queue_size_thresholds = queue_size_thresholds end