0.0
No commit activity in last 3 years
No release in over 3 years
Resque plugin that pushes the job statistics to statsd
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0
>= 0
 Project Readme

Resque-Statsd

A resque plugin that pushes worker statistics to statsd.

gem install resque_statsd

or

gem 'resque_statsd' in the Gemfile

add the following to your resque workers

extend Resque::Plugins::Statsd

By default this would send it to the statsd that has been configured.

This will by default do the following

  • total_resque_failures

  • total_resque_failures:

  • total_enqueues

  • total_enqueues:

  • total_dequeues

  • total_dequeues:

  • total_successful

  • total_successful:

  • duration:

    Customizations. ===============

By adding something like this

@extra_stats_key = {:duration => [:hostname, :queuename]}

This will also add the duration: as a stat This will also add the duration: as a stat

Following default tasks are available

  • queuename - Name of the queue on which this task was picked up
  • hostname - Name of the machine on which the task was executed
  • classname - The default. Name of the worker that was executed.

More Customizations

@extra_stats_key = {:failure => Proc.new {|e, args| e.to_s}}

This will add a stat key for

total_resque_failures:

Following hooks are available

  • failure
  • duration
  • enqueue
  • dequeue
  • fork