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.
- data/README.rdoc +22 -1
- data/VERSION +1 -1
- data/lib/resque-statsd.rb +0 -2
- data/lib/resque/plugins/statsd.rb +2 -2
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -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
|
-
|
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.
|
1
|
+
0.0.1
|
data/lib/resque-statsd.rb
CHANGED
@@ -3,8 +3,8 @@ module Resque
|
|
3
3
|
module Statsd
|
4
4
|
|
5
5
|
def after_enqueue_statsd(*args)
|
6
|
-
$resque_statsd.increment("#{@queue}.
|
7
|
-
$resque_statsd.increment("total.
|
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Amster
|