Permalink
Browse files

report the number of stored backtraces

  • Loading branch information...
1 parent e90b70c commit 294d87c3df08b8f5be38887fbacf6654343530e7 @jnewland jnewland committed Nov 29, 2010
Showing with 8 additions and 1 deletion.
  1. +2 −1 resque_stats/resque_stats.rb
  2. +6 −0 resque_stats/resque_stats.yml
View
3 resque_stats/resque_stats.rb
@@ -24,7 +24,8 @@ def build_report
:pending => info[:pending],
:total_failed => info[:failed],
:queues => info[:queues],
- :workers => info[:workers]
+ :workers => info[:workers],
+ :backtraces => Resque.redis.llen('failed')
)
counter(:processed, info[:processed], :per => :second)
counter(:failed, info[:failed], :per => :second)
View
6 resque_stats/resque_stats.yml
@@ -29,6 +29,12 @@ metadata:
delimiter: ","
precision: "0"
label: Total failed
+ backtraces:
+ units: failed jobs
+ larger_is_better: "0"
+ delimiter: ","
+ precision: "0"
+ label: Backtraces
working:
units: ""
larger_is_better: "1"

0 comments on commit 294d87c

Please sign in to comment.