Skip to main content

Nerve

Nerve monitors your background jobs across Sidekiq, Solid Queue, Resque, DelayedJob, and GoodJob. See queue health, job performance, and worker status in real-time.

Features

Multi-Adapter Support

Sidekiq, Solid Queue, Resque, DelayedJob, GoodJob

Real-time Dashboard

Live queue sizes, job throughput, worker status

Failed Job Management

View, retry, and manage dead jobs

Performance Metrics

Job duration, wait time, failure rates

Quick Start

# Nerve automatically detects your job backend
# Just configure the SDK and you're monitoring

BrainzLab.configure do |config|
  config.nerve.enabled = true
end

# Check queue health
health = BrainzLab::Nerve.queue_health
puts health[:default].size      # => 42
puts health[:default].latency   # => 1.2 (seconds)

Supported Job Backends

BackendFeatures
SidekiqQueues, jobs, workers, retries, dead jobs, scheduled
Solid QueueRails 8 native, queues, jobs, processes
ResqueQueues, jobs, workers, failures
DelayedJobJobs, workers, priorities, attempts
GoodJobQueues, jobs, cron, batches

Dashboard Overview

The Nerve dashboard shows:
┌─────────────────────────────────────────────────────┐
│  Queue Health                    Workers: 5 active  │
├─────────────────────────────────────────────────────┤
│  default     ████████░░  42 jobs   1.2s wait       │
│  mailers     ██░░░░░░░░   8 jobs   0.3s wait       │
│  critical    ░░░░░░░░░░   0 jobs   0.0s wait       │
├─────────────────────────────────────────────────────┤
│  Throughput: 1,234 jobs/hour    Failed: 3 today    │
└─────────────────────────────────────────────────────┘

Key Metrics

MetricDescription
Queue SizeNumber of jobs waiting
Wait TimeHow long jobs wait before processing
Job DurationAverage time to process a job
ThroughputJobs processed per minute/hour
Failure RatePercentage of jobs failing
Retry CountJobs being retried
Dead JobsJobs that exhausted retries

Next Steps