finds.dev← search

// the find

davydovanton/sidekiq-statistic

★ 792 · Ruby · MIT · updated Dec 2023

See statistic about your workers

A Sidekiq Web UI extension that adds a per-worker statistics tab showing success/failure counts, runtime metrics, and charts over time. Stores everything in Redis using a flat hash structure keyed by date and worker name. Useful if you want quick visibility into worker health without standing up a separate observability tool.

The middleware approach is clean — it hooks into Sidekiq's existing middleware chain so you get stats with zero changes to your workers. The JSON API is a nice touch; you can pull the data into your own dashboards without scraping HTML. The `max_timelist_length` eviction config shows someone thought about Redis memory growth, which is the obvious footgun in this kind of design. Multi-language locale support is more than you'd expect from a small monitoring gem.

Last pushed December 2023 and only officially supports up to Sidekiq 6 — Sidekiq 7 has been out for years and the compatibility status is unclear, which matters because Sidekiq 7 changed the way web extensions register. All stats live in Redis with a home-rolled flat hash structure; there's no TTL-based cleanup beyond the length cap, so old keys accumulate indefinitely unless you prune manually. The realtime view uses polling rather than ActionCable or SSE, which means it'll be stale under load. Travis CI badge with a broken build link doesn't inspire confidence.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →