Skip to content

Commit

Permalink
ulm_stats: events_per_second
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Asmuth committed Dec 19, 2011
1 parent 2abaac9 commit 22935fb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/ulm_stats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,12 @@

gauge :events_per_minute, :tick => 60
gauge :events_per_hour, :tick => 1.hour.to_i
gauge :events_per_second, :tick => 1

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

widget 'TechStats', {
Expand All @@ -361,6 +363,24 @@
}


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


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

end

#task :setup do
Expand Down

0 comments on commit 22935fb

Please sign in to comment.