[ 
https://issues.apache.org/jira/browse/FLUME-2004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Venkatesh Sivasubramanian updated FLUME-2004:
---------------------------------------------

    Attachment: FLUME-2003.patch

Hi,

I was the person who had this request. I have created a patch for the same; 
pls. find the same attached. 


The changes are made to ExecSource class. I have made used of SourceCounter in 
place of CounterGroup and have incremented the metrics for events received and 
accepted in the appropriate place.


Please review and let me know if you have any comments/feedback. Thank you for 
all the help!

Regards,
Venkatesh
                
> Need to capture metrics on the Flume exec source such as events received, 
> rejected, etc.
> ----------------------------------------------------------------------------------------
>
>                 Key: FLUME-2004
>                 URL: https://issues.apache.org/jira/browse/FLUME-2004
>             Project: Flume
>          Issue Type: New Feature
>          Components: Channel, Sinks+Sources
>    Affects Versions: v1.3.0
>            Reporter: Robert Justice
>            Priority: Minor
>         Attachments: FLUME-2003.patch
>
>
> To give you a background, we have configured our flume agents with "exec" 
> source to tail some logs and stream it to a set of collectors. We have 
> monitoring setup that polls "/metrics" on these agents and verifies a few 
> metrics like channel size, event put count etc. The "/metrics" response 
> returns data about the 'channel' and 'sink' (we have an avro sink) 
> components, however there is no data returned about the "source" (exec) 
> component. We are interested in monitoring the number of events received, 
> rejected, etc.
> I couldn't find any documentation around this; I checked the flume source and 
> saw the metrics are not getting captured in the code as well for 'exec' 
> source. 
> Please improve the metrics captured for the 'exec' source for flume.

--
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

Reply via email to