Skip to content
Browse files

updated readme and took away puts

  • Loading branch information...
1 parent 4cba944 commit 0cf66730ca4082d0e2969b5e5e132202ef93d19b @jamster committed Mar 23, 2011
Showing with 22 additions and 3 deletions.
  1. +22 −1 README.rdoc
  2. +0 −2 lib/resque-statsd.rb
View
23 README.rdoc
@@ -4,7 +4,28 @@ Resque Statsd is a Resque plugin that will wrap the enqueueing, performing, fail
== CURRENT STATUS
-COMPLETELY UNTESTED (NOT EVEN TRIED OUT)
+No tests but in production
+
+== Usage
+
+=== Install
+
+ gem install resque-statsd
+ gem install jamster-statsd # really jnunemaker's version of the statsd rubygem
+
+=== Rails Setup
+
+in an initializer, set up the Statsd
+
+ touch config/initializers/resque-statsd.rb
+
+in file add code
+
+ ENV['GRAPHITE_HOST'] = 'graphite.YOURHOST.com'
+ ENV['APP_NAME'] = 'yourappname_resque' # I add the _resque to separate against web
+ require 'resque-statsd'
+
+
== Background Reading
View
2 lib/resque-statsd.rb
@@ -5,8 +5,6 @@
# Set up the client
$resque_statsd = Statsd.new(ENV['GRAPHITE_HOST'], 8125)
$resque_statsd.namespace="#{ENV['APP_NAME']}_#{ENV['RAILS_ENV']}.resque"
-puts $resque_statsd.namespace
-
module Resque

0 comments on commit 0cf6673

Please sign in to comment.
Something went wrong with that request. Please try again.