Sidekiq Logo
Sidekiq Optimization and Monitoring

Easy and powerful Sidekiq monitoring.

Get insights and alerts for Sidekiq queue lengths, Sidekiq throughput/performance per worker, Sidekiq process/connection counts and memory used in Redis.

Sidekiq monitoring dashboard screenshot

Sidekiq Dashboards and Alerts

Track and debug Sidekiq performance metrics.

Get alerts for long Sidekiq queues.

Get alerts for long Sidekiq queues.

AppSignal automatically provides a dashboard for queue length, a good indicator of Sidekiq health. Need alerts? Set triggers and get alerts when your queues are too long.

Track failed and retried Sidekiq jobs.

Track failed and retried Sidekiq jobs.

Know if your Sidekiq jobs succeed or fail. AppSignal visualizes failed, retried, dead and successful jobs.

Throughput and duration per worker

Throughput and duration per worker

Inspect the throughput and duration per worker to see if any worker is performing badly. This helps you scale your Sidekiq cluster.

Control Redis memory usage with Sidekiq

Control Redis memory usage with Sidekiq

Track the memory used by Redis and find out if there are any memory leaks in Sidekiq.

Dive deep into Sidekiq jobs with the event timeline.

Running into Sidekiq performance issues? Click any peak in a graph, go to a Sidekiq job performance issue, and find the event timeline. You'll see the job's content in detail, with highlighted N+1 queries.

Event timeline of sidekiq job

"Man, AppSignal is an absolute godsend. Just fixed 2 errors in production, 2 minutes after they happened."

Photo of Stefan Dorresteijn
Stefan Dorresteijn@StefanJD

The trusted APM for thousands of development teams

  • Logo of Wetransfer
  • Logo of Depfu
  • Logo of Moneybird
  • Logo of Userlist
  • Logo of CodeSandbox

Easy installation

Install the AppSignal gem for Sidekiq

The AppSignal Ruby gem automatically inserts a listener into the Sidekiq server middleware stack. No further action is required to instrument Sidekiq!

# Add to .gemfile
source "https://rubygems.org"
gem "appsignal"

# Ruby on Rails installation
bundle exec appsignal install YOUR_PUSH_API_KEY

Want to learn more? Check out our Sidekiq docs.

Easy Sidekiq monitoring

Start your free trial today.

We offer a 30 day free trial, but who doesn't? What sets us apart is the way we care for you. We're just a chat message or email away and would love to help you get your app in the best shape possible.

Sidekiq monitoring checklist

We've made a checklist to help you get started with Sidekiq monitoring and performance, including links to further resources. We recommend you follow these four steps:

  • Step one: Measure the right things.
  • Step two: Set alerts for your metrics.
  • Step three: Troubleshoot by looking into jobs.
  • Step four: Optimise when things are running.

Let's start with what to measure and how to set alerts.

Metric and Alert: Sidekiq queue length ✅

Start with monitoring queue length. If your queues get too long, Sidekiq might not be able to catch up. Set alerts for maximum lengths so that you can scale up in time. Set up alerts and triggers for Sidekiq queue lengths

Metric and Alert: Sidekiq job_status per queue ✅

The next metric to track is jobstatus per queue. Tracking your jobstatus is important, as it indicates if your jobs are being processed successfully. Set alerts for failed job percentages and you'll know when something is wrong with your system.

Metric and Alert: Sidekiq job duration ✅

If you've had Sidekiq running for a while, you will know the usual variance in duration per job. Monitor duration per job and set an alert when it goes over a certain threshold, so you're warned before the bits hit the fan.

Troubleshoot: Dive into an event timeline for a job taking too long ✅

In every AppSignal graph, you can go to 'what happened here' and look at the performance page (or errors, or host metrics) for that point in time. Here you can dive into a detailed event timeline to see why the job is taking so long.

Troubleshoot: Sidekiq performance issues caused by host ✅

Sometimes a problem surfaces in part of your stack (like Sidekiq), but originates somewhere else. A host that gets a surge in I/O from another app might cause performance issues in your Sidekiq background processes.

More resources for Sidekiq monitoring ✅

Read some helpful resources below:

You can also read our Sidekiq installation documentation

We'd like to set cookies, read why.