resque-statsd 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,28 @@ Resque Statsd is a Resque plugin that will wrap the enqueueing, performing, fail
4
4
 
5
5
  == CURRENT STATUS
6
6
 
7
- COMPLETELY UNTESTED (NOT EVEN TRIED OUT)
7
+ No tests but in production
8
+
9
+ == Usage
10
+
11
+ === Install
12
+
13
+ gem install resque-statsd
14
+ gem install jamster-statsd # really jnunemaker's version of the statsd rubygem
15
+
16
+ === Rails Setup
17
+
18
+ in an initializer, set up the Statsd
19
+
20
+ touch config/initializers/resque-statsd.rb
21
+
22
+ in file add code
23
+
24
+ ENV['GRAPHITE_HOST'] = 'graphite.YOURHOST.com'
25
+ ENV['APP_NAME'] = 'yourappname_resque' # I add the _resque to separate against web
26
+ require 'resque-statsd'
27
+
28
+
8
29
 
9
30
  == Background Reading
10
31
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -5,8 +5,6 @@ require 'resque/plugins/statsd'
5
5
  # Set up the client
6
6
  $resque_statsd = Statsd.new(ENV['GRAPHITE_HOST'], 8125)
7
7
  $resque_statsd.namespace="#{ENV['APP_NAME']}_#{ENV['RAILS_ENV']}.resque"
8
- puts $resque_statsd.namespace
9
-
10
8
 
11
9
 
12
10
  module Resque
@@ -3,8 +3,8 @@ module Resque
3
3
  module Statsd
4
4
 
5
5
  def after_enqueue_statsd(*args)
6
- $resque_statsd.increment("#{@queue}.en@queued")
7
- $resque_statsd.increment("total.en@queued")
6
+ $resque_statsd.increment("#{@queue}.enqueued")
7
+ $resque_statsd.increment("total.enqueued")
8
8
 
9
9
  end
10
10
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-statsd
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 0
10
- version: 0.0.0
9
+ - 1
10
+ version: 0.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Amster