标签:
prerequisite: JMX http://www.cnblogs.com/itech/archive/2010/09/16/1827999.html http://download.oracle.com/technetwork/java/javase/6/docs/zh/api/java/lang/management/ManagementFactory.html
主要3个包:org.apache.flume.instrumentation、org.apache.flume.instrumentation.http和org.apache.flume.instrumentation.util
3个统计类:SourceCounter、ChannelCounter和SinkCounter
都继承了:MonitoredCounterGroup, 分别实现了:SourceCounterMBean、ChannelCounterMBean和SinkCounterMBean
另外还有个CounterGroup类:应该是每个组件的统计数据,包含name,和HashMap<k,v> counters . 配置文件中有个MyMemChannel, name就是MyMemChannel, <k,v> 有 <received_events, long> 等等吧 ???
标签:
原文地址:http://www.cnblogs.com/kuipertan/p/4294298.html