Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin newrelic_resque_agent gem Jul 1, 2013
config Fix config for newrelic_resque_agent Jul 1, 2013
lib Release newrelic_resque_agent 1.0.1 Jul 1, 2013
Gemfile newrelic_resque_agent gem Jul 1, 2013
ic_resque_64.png Added logos Jul 17, 2013
newrelic_resque_agent.gemspec Release newrelic_resque_agent 1.0.1 Jul 1, 2013

New Relic Resque monitoring Plugin

The New Relic Resque Plugin enables monitoring of Resque, a library for processing background jobs, reporting the following data for a specified instance:

  • Number of working workers
  • Pending jobs number
  • Total failed jobs number
  • Queues number
  • Number of workers
  • Number of processed jobs


The Resque monitoring Plugin for New Relic requires the following:

  • A New Relic account. Signup for a free account at
  • You need a host to install the plugin on that is able to poll the desired Redis server. That host also needs Ruby (tested with 1.8.7, 1.9.3), and support for rubygems.

Instructions for running the Resque agent

  1. Install this gem from RubyGems:

    sudo gem install newrelic_resque_agent

  2. Install config, execute

    sudo newrelic_resque_agent install - it will create /etc/newrelic/newrelic_resque_agent.yml file for you.

  3. Edit the /etc/newrelic/newrelic_resque_agent.yml file generated in step 2.

    3.1. replace YOUR_LICENSE_KEY_HERE with your New Relic license key. Your license key can be found under Account Settings at, see for more help.

    3.2. add the Redis connection string: 'hostname:port' or 'hostname:port:db' or 'redis://user:password@hostname:port:db'

  4. Execute

    newrelic_resque_agent run

  5. Go back to the Plugins list and after a brief period you will see the Resque Plugin listed in your New Relic account

Keep this process running

You can use services like these to manage this process and run it as a daemon.

Also you can use foreman for daemonization.

Foreman can be useful if you want to use Heroku for run your agent. Just add Procfile and push to Heroku.

monitor_daemon: newrelic_resque_agent run -c config/newrelic_plugin.yml


Please use Github issues for support.