Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.37 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.37 KB

sidekiq-worker_stats

Statistics for sidekiq workers

CircleCI

The following statistics are saved for analysis:

  • Start Time
  • Stop Time
  • Runtime
  • Memory

Installation

Add sidekiq-worker_stats to your Gemfile

gem 'sidekiq-worker_stats'

and install

$ bundle install

then simply require sidekiq/worker_stats after your sidekiq requirement.

require 'sidekiq'
require 'sidekiq/worker_stats'

Sidekiq web - worker_stats tab

Require sidekiq/worker_stats/web after sidekiq/web.

require 'sidekiq/web'
require 'sidekiq/worker_stats/web'

Configuration

By default sidekiq-worker_stats is disabled for every worker. To activate include worker_stats_enabled: true in your sidekiq_options.

All configurations you can include on sidekiq_options

Configuration Type Default Description
worker_stats_enabled boolean false Whether worker_stats should be enabled for this worker or not
worker_stats_mem_sleep number 5 How many seconds to wait between each memory measurement
worker_stats_max_samples number 1000 How many samples to keep for a given worker, it will delete the oldest samples first