[
https://issues.apache.org/jira/browse/FLUME-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13454472#comment-13454472
]
Ted Malaska commented on FLUME-1411:
------------------------------------
Hey Hari,
My question is "get the average per second over what time period"?
One possible implementation would be to added the following methods to
MonitoredCounterGroup:
getAverage(String counter) //This will return the average of events since last
AvgAsOfTime
resetAverages() // This will reset AvgAsOfTime to now
Note: AvgAsOfTime will start as the time the counter was created.
This will need very little memory or processing power. It will also allow the
user the ability to get Averages for what ever time interval length they want.
> Add average events per second params to MBeans
> ----------------------------------------------
>
> Key: FLUME-1411
> URL: https://issues.apache.org/jira/browse/FLUME-1411
> Project: Flume
> Issue Type: Bug
> Components: Sinks+Sources
> Affects Versions: v1.2.0
> Reporter: Hari Shreedharan
> Fix For: v1.3.0
>
>
> I know this might cause the platform mbean thread longer to poll, since we
> will need to do some calculation - but it is definitely nice to have historic
> averages.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira