{"id":15605729,"url":"https://github.com/ajitsing/sidekiq_queue_metrics","last_synced_at":"2025-10-14T17:12:20.026Z","repository":{"id":32986637,"uuid":"141901348","full_name":"ajitsing/sidekiq_queue_metrics","owner":"ajitsing","description":"Records stats of each sidekiq queue and exposes APIs to retrieve them","archived":false,"fork":false,"pushed_at":"2022-12-15T11:33:52.000Z","size":57,"stargazers_count":33,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-27T05:49:27.516Z","etag":null,"topics":["ruby","rubygem","sidekiq","sidekiq-metrics","sidekiq-monitor","sidekiq-queue-stats"],"latest_commit_sha":null,"homepage":"http://www.singhajit.com/monitoring-individual-queue-in-sidekiq/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajitsing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-22T14:09:48.000Z","updated_at":"2025-05-19T20:30:49.000Z","dependencies_parsed_at":"2023-01-14T22:56:37.031Z","dependency_job_id":null,"html_url":"https://github.com/ajitsing/sidekiq_queue_metrics","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/ajitsing/sidekiq_queue_metrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajitsing%2Fsidekiq_queue_metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajitsing%2Fsidekiq_queue_metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajitsing%2Fsidekiq_queue_metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajitsing%2Fsidekiq_queue_metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajitsing","download_url":"https://codeload.github.com/ajitsing/sidekiq_queue_metrics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajitsing%2Fsidekiq_queue_metrics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002125,"owners_count":26083307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ruby","rubygem","sidekiq","sidekiq-metrics","sidekiq-monitor","sidekiq-queue-stats"],"created_at":"2024-10-03T04:13:57.998Z","updated_at":"2025-10-14T17:12:19.975Z","avatar_url":"https://github.com/ajitsing.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sidekiq_queue_metrics\nRecords stats of each sidekiq queue and exposes APIs to retrieve them\n\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/ajitsing/sidekiq_queue_metrics/graphs/commit-activity)\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://opensource.org/licenses/MIT)\n[![Gem Version](https://badge.fury.io/rb/sidekiq_queue_metrics.svg)](https://badge.fury.io/rb/sidekiq_queue_metrics)\n[![HitCount](http://hits.dwyl.io/ajitsing/sidekiq_queue_metrics.svg)](http://hits.dwyl.io/ajitsing/sidekiq_queue_metrics)\n![Gem Downloads](http://ruby-gem-downloads-badge.herokuapp.com/sidekiq_queue_metrics?type=total)\n[![Build Status](https://travis-ci.org/ajitsing/sidekiq_queue_metrics.svg?branch=master)](https://travis-ci.org/ajitsing/sidekiq_queue_metrics)\n[![Twitter Follow](https://img.shields.io/twitter/follow/Ajit5ingh.svg?style=social)](https://twitter.com/Ajit5ingh)\n\n## Installation\nAdd this line to your application's Gemfile:\n```ruby\ngem 'sidekiq_queue_metrics'\n```\n\n## Configuration\n```ruby\nrequire 'sidekiq_queue_metrics'\n\nSidekiq.configure_server do |config|\n  Sidekiq::QueueMetrics.init(config)\nend\n```\n\n## Usage\n`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.\n\nThe failed job count is configuratble. You can configure your desired count using below config.\n\n```ruby\nSidekiq::QueueMetrics.max_recently_failed_jobs = 100\n```\n\n\u003cimg src=\"https://github.com/ajitsing/ScreenShots/blob/master/sidekiq_queue_metrics/sidekiq_queue_metrics.png\"/\u003e\n\n### Queue Summary\n\n\u003cimg src=\"https://github.com/ajitsing/ScreenShots/blob/master/sidekiq_queue_metrics/queue_summary.png\"/\u003e\n\n### Failed Job\n\n\u003cimg src=\"https://github.com/ajitsing/ScreenShots/blob/master/sidekiq_queue_metrics/failed_job.png\"/\u003e\n\nYou can also use the below apis to directly consume the queue metrics.\n\nFetch stats of all queues:\n```ruby\nSidekiq::QueueMetrics.fetch\n```\n\nOutput:\n```ruby\n{\n  \"mailer_queue\" =\u003e {\"processed\" =\u003e 5, \"failed\" =\u003e 1, \"enqueued\" =\u003e 2, \"in_retry\" =\u003e 0, \"scheduled\" =\u003e 0},\n  \"default_queue\" =\u003e {\"processed\" =\u003e 10, \"failed\" =\u003e 0, \"enqueued\" =\u003e 1, \"in_retry\" =\u003e 1, \"scheduled\" =\u003e 2}\n}\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/ajitsing/sidekiq_queue_metrics/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## License\n```LICENSE\nMIT License\n\nCopyright (c) 2018 Ajit Singh\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajitsing%2Fsidekiq_queue_metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajitsing%2Fsidekiq_queue_metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajitsing%2Fsidekiq_queue_metrics/lists"}