Hi, Have hacked a bit into our existing instrumentation package and piggy backed cohahale metrics package. Here is one sample for Spooled Directory source (with instrumentation only for Source and Channel ), using console reporter
-- Gauges ---------------------------------------------------------------------- org.apache.flume.instrumentation.ChannelCounter.channel.current.size value = 200 org.apache.flume.instrumentation.ChannelCounter.channel.fill.percentage value = 2.0 org.apache.flume.instrumentation.SourceCounter.src.open-connection.count value = 0 -- Counters -------------------------------------------------------------------- org.apache.flume.instrumentation.ChannelCounter.channel.event.put.attempt count = 1138800 org.apache.flume.instrumentation.ChannelCounter.channel.event.put.success count = 1138800 org.apache.flume.instrumentation.ChannelCounter.channel.event.take.attempt count = 1138601 org.apache.flume.instrumentation.ChannelCounter.channel.event.take.success count = 1138600 org.apache.flume.instrumentation.SourceCounter.src.events.accepted count = 1138800 org.apache.flume.instrumentation.SourceCounter.src.events.received count = 1138800 src.append-batch.accepted count = 11388 src.append-batch.received count = 11388 src.append.accepted count = 0 src.append.received count = 0 -- Meters ---------------------------------------------------------------------- eventAcceptedMeter count = 1138800 mean rate = 106478.56 events/second 1-minute rate = 93420.18 events/second 5-minute rate = 91389.24 events/second 15-minute rate = 91037.40 events/second eventReceivedMeter count = 1138800 mean rate = 106462.14 events/second 1-minute rate = 93420.18 events/second 5-minute rate = 91389.24 events/second 15-minute rate = 91037.40 events/second If there is interest in the community, can raise a jira and continue to work on it. -- thanks ashish Blog: http://www.ashishpaliwal.com/blog My Photo Galleries: http://www.pbase.com/ashishpaliwal