Sha256: a814083328a72f4211bf156a95eca81a2c6821055a5ffe0c8ee70a91e10b9bca

Contents?: true

Size: 437 Bytes

Versions: 75

Compression:

Stored size: 437 Bytes

Contents

require "resque"

redis_server = Rubber.instances.for_role('redis_master').first.full_name rescue nil
redis_server ||= 'localhost' if Rubber.env == 'development'
Resque.redis = "#{redis_server}:6379"

puts "PUTVAL #{HOSTNAME}/resque/derive-jobs_processed interval=#{INTERVAL} N:#{Resque.redis.get("stat:processed").to_i}"
puts "PUTVAL #{HOSTNAME}/resque/derive-jobs_failed interval=#{INTERVAL} N:#{Resque.redis.get("stat:failed").to_i}"

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
rubber-3.2.2 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-3.2.1 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-3.2.0 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-3.1.0 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-3.0.1 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-3.0.0 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.16.0 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.15.2 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.15.1 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.15.0 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.14.0 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.13.1 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.13.0 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.12.2 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.12.1 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.12.0 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.11.0 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.10.2 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.10.1 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb
rubber-2.10.0 templates/collectd/script/collectd/role/web_tools/resque_jobs_processed.rb