Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

resque_statsd

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resque_statsd

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 12 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc