I can do what you ask. But let me clarify and ask one more question.
When I said getAverage(String counter) in MonitoredCounterGroup it is like
- getAverage(COUNTER_EVENT_TAKE_ATTEMPT) is to getAverageEventRate() as get(COUNTER_EVENT_TAKE_ATTEMPT) getEventTakeAttemptCount.
So on that note, we are saying the same thing.
When you say "averages events/sec since the component started" it is a simple a dividing the number of events by the number of second since the component started.
The problem with that approach is the longer the component runs the less reactive the result of getAverage will be to changes to events per second. So the value becomes less valuable to the user the longer the component runs.
What would be really cool if the user could get like the average for the last N minutes and chart it in something like http://mbostock.github.com/d3/ex/stack.html
The reset is one way to do this. Another way to do this is change the method to say something like getLastMinuteAverageOfFoo()
Do you see what I saying?