You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by fang <qf...@qq.com> on 2015/01/23 03:57:00 UTC

The different BasicTaskHook and storm metrics(IMetricsConsumer)

When i want to monitor storm topology, i find there are two approach use BasicTaskHook or storm metrics(IMetricsConsumer) which can do it. But which approach i should use?  what the different of BasicTaskHook  and storm metrics(IMetricsConsumer)?  Thank you!‍

Re: The different BasicTaskHook and storm metrics(IMetricsConsumer)

Posted by Bobby Evans <ev...@yahoo-inc.com>.
The storm metrics consumer gets both system and user defined metrics. The task hook will only get system metrics.  Also if you do heavy processing in the hook it can impact the performance of your topology.  If you do heavy processing in the metrics consumer it will have less of an impact.
 - Bobby
 

     On Thursday, January 22, 2015 8:58 PM, fang <qf...@qq.com> wrote:
   

 When i want to monitor storm topology, i find there are two approach use BasicTaskHook or storm metrics(IMetricsConsumer) which can do it. But which approach i should use?  what the different of BasicTaskHook  and storm metrics(IMetricsConsumer)?  Thank you!‍