All Projects → ajitsing → sidekiq_queue_metrics

ajitsing / sidekiq_queue_metrics

Licence: MIT license
Records stats of each sidekiq queue and exposes APIs to retrieve them

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to sidekiq queue metrics

sidekiq log analyzer
SidekiqLogAnalyser gem allows to see summary of your sidekiq workers (based on log file).
Stars: ✭ 13 (-55.17%)
Mutual labels:  sidekiq, sidekiq-monitor, sidekiq-metrics
KittyEvents
Super simple event system on top of ActiveJob
Stars: ✭ 20 (-31.03%)
Mutual labels:  sidekiq
glimmer-dsl-opal
Glimmer DSL for Opal (Pure-Ruby Web GUI and Auto-Webifier of Desktop Apps)
Stars: ✭ 22 (-24.14%)
Mutual labels:  rubygem
tty-link
Hyperlinks in your terminal
Stars: ✭ 30 (+3.45%)
Mutual labels:  rubygem
sinatra-bootstrap
My opinionated Sinatra base application
Stars: ✭ 14 (-51.72%)
Mutual labels:  sidekiq
dkdeploy-typo3-cms
dkdeploy-typo3-cms provides functionality for fully automated deployments targeting TYPO3 CMS applications
Stars: ✭ 16 (-44.83%)
Mutual labels:  rubygem
taskinator
A simple orchestration library for running complex processes or workflows in Ruby
Stars: ✭ 25 (-13.79%)
Mutual labels:  sidekiq
ruby terraform
A simple Ruby wrapper for invoking terraform commands.
Stars: ✭ 92 (+217.24%)
Mutual labels:  rubygem
itunes receipt validator
Validate iTunes Transaction and Unified style receipts with local decoding and remote validation.
Stars: ✭ 38 (+31.03%)
Mutual labels:  rubygem
ruby-lokalise-api
Lokalise API v2 Ruby interface.
Stars: ✭ 17 (-41.38%)
Mutual labels:  rubygem
sidekiq-backend
Karafka Sidekiq backend for background messages processing
Stars: ✭ 69 (+137.93%)
Mutual labels:  rubygem
jobqueue
Jobqueue manages running and scheduling jobs (think Sidekiq or Resque for Go).
Stars: ✭ 37 (+27.59%)
Mutual labels:  sidekiq
shotgun
Ready to go Rails App with TailwindCSS, ViewComponent, Devise, and more!
Stars: ✭ 25 (-13.79%)
Mutual labels:  sidekiq
oanda api
A ruby client for the Oanda REST API.
Stars: ✭ 35 (+20.69%)
Mutual labels:  rubygem
jekyll-gzip
Generate gzipped assets and files for your Jekyll site at build time
Stars: ✭ 34 (+17.24%)
Mutual labels:  rubygem
rack-session-smart cookie
Slightly smarter session cookies for Rack 2 apps
Stars: ✭ 43 (+48.28%)
Mutual labels:  rubygem
ocr space
Free Online OCR for Ruby - Convert images to text
Stars: ✭ 62 (+113.79%)
Mutual labels:  rubygem
cli-rubygem
Command line interface for interacting with Civo's cloud API
Stars: ✭ 15 (-48.28%)
Mutual labels:  rubygem
Lumpik
[experimental] Lumpik is a job queue system for general purpose.
Stars: ✭ 21 (-27.59%)
Mutual labels:  sidekiq
strings-ansi
Handle ANSI escape codes in strings
Stars: ✭ 17 (-41.38%)
Mutual labels:  rubygem

sidekiq_queue_metrics

Records stats of each sidekiq queue and exposes APIs to retrieve them

Maintenance Open Source Love Gem Version HitCount Gem Downloads Build Status Twitter Follow

Installation

Add this line to your application's Gemfile:

gem 'sidekiq_queue_metrics'

Configuration

require 'sidekiq_queue_metrics'

Sidekiq.configure_server do |config|
  Sidekiq::QueueMetrics.init(config)
end

Usage

sidekiq_queue_metrics adds a new tab Queue Metrics in Sidekiq UI. In Queue Metrics tab you will see widget of all the queues with latest stats. To checkout individual queue summary click on the queue name. On queue summary page you will see all the stats of the queue along with 50 recently failed jobs. To see the details of the failed job click on the enqueued time column of the failed job row.

The failed job count is configuratble. You can configure your desired count using below config.

Sidekiq::QueueMetrics.max_recently_failed_jobs = 100

Queue Summary

Failed Job

You can also use the below apis to directly consume the queue metrics.

Fetch stats of all queues:

Sidekiq::QueueMetrics.fetch

Output:

{
  "mailer_queue" => {"processed" => 5, "failed" => 1, "enqueued" => 2, "in_retry" => 0, "scheduled" => 0},
  "default_queue" => {"processed" => 10, "failed" => 0, "enqueued" => 1, "in_retry" => 1, "scheduled" => 2}
}

Contributing

  1. Fork it ( https://github.com/ajitsing/sidekiq_queue_metrics/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

MIT License

Copyright (c) 2018 Ajit Singh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].