Skip to content

Commit

Permalink
ulm_stats: votes per second
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Asmuth committed Dec 19, 2011
1 parent 196f13f commit 9007bfa
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions doc/ulm_stats.rb
Expand Up @@ -337,13 +337,23 @@
gauge :events_per_minute, :tick => 60
gauge :events_per_hour, :tick => 1.hour.to_i
gauge :events_per_second, :tick => 1
gauge :votes_per_second, :tick => 1

event :"*" do
incr :events_per_minute
incr :events_per_hour
incr :events_per_second
end


event(:skip_vote){ incr :votes_per_second }
event(:action_skip){ incr :votes_per_second }
event(:yes_vote){ incr :votes_per_second }
event(:action_yes){ incr :votes_per_second }
event(:maybe_vote){ incr :votes_per_second }
event(:action_maybe){ incr :votes_per_second }


widget 'TechStats', {
:title => "Events per Minute",
:type => :timeline,
Expand All @@ -364,7 +374,7 @@


widget 'TechStats', {
:title => "Events per Second (now)",
:title => "Events/Second",
:type => :timeline,
:width => 50,
:gauges => :events_per_second,
Expand All @@ -374,10 +384,11 @@


widget 'TechStats', {
:title => "Events per Second (-1)",
:title => "Votes/Second",
:type => :timeline,
:width => 50,
:gauges => :events_per_second,
:gauges => :votes_per_second,
:include_current => true,
:autoupdate => 1
}

Expand Down

0 comments on commit 9007bfa

Please sign in to comment.