Hi Paul,

That looks really helpful. However, I'm missing a bit of context - what is 
generating those metrics? i.e., is there a utility class/program in the Flume 
jar I run to obtain it? That looks like JSON - what generates it? 

Thanks,
Andy





On Thursday, January 2, 2014 5:32:21 PM, Paul Chavez 
<[email protected]> wrote:
 
The ‘ChannelSize’ metric will give you the number of events currently in the 
channel. It’s one of the main metrics we alert on (well ChannelFillPercentage, 
actually).
 
Snippet from one of my nodes:
 
"CHANNEL.fc_WebLogs": {
"EventPutSuccessCount": "1285941800",
"ChannelFillPercentage": "1.8881",
"Type": "CHANNEL",
"EventPutAttemptCount": "1285941800",
"ChannelSize": "18881",
"StopTime": "0",
"StartTime": "1387357632600",
"EventTakeSuccessCount": "1285944090",
"ChannelCapacity": "1000000",
"EventTakeAttemptCount": "1287200957"
},
 
Hope that helps,
Paul Chavez
 
 
From:Andy Yang [mailto:[email protected]] 
Sent: Thursday, January 02, 2014 2:07 PM
To: [email protected]
Subject: File Channel Contents
 
Hi

Are there any utils out there that will analyze a file channel and return 
information about it? I've found the blog article here: 
https://blogs.apache.org/flume/entry/apache_flume_filechannel which is very 
useful and seems to suggest that I could whip up some code using FileChannel 
and LogFile classes. However, it seems like this would be something that people 
previously might have had a need for.

While browsing individual events would be nice, even just a reliable count of 
the number of events in the queue would be hugely useful.
Thanks

Reply via email to