I have been using [1]. in the past. [2] defines on how to integrate this into Graphite.
[1]. https://godoc.org/github.com/codahale/metrics [2]. http://www.michael-noll.com/blog/2013/11/06/sending-metrics-from-storm-to-graphite/ Cheers, Anis On Thu, Oct 29, 2015 at 3:34 PM, Joshua Martell <[email protected]> wrote: > I haven't used it, but you might be able to collect your own metrics using > a Hook: > > http://storm.apache.org/documentation/Hooks.html > > http://storm.apache.org/javadoc/apidocs/backtype/storm/hooks/ITaskHook.html > > Joshua > > On Wed, Oct 28, 2015 at 3:36 AM, Stephen Powis <[email protected]> > wrote: > >> You could write your own custom metrics consumer perhaps: >> https://github.com/apache/storm/blob/master/storm-core/src/jvm/backtype/storm/metric/LoggingMetricsConsumer.java >> >> On Wed, Oct 28, 2015 at 4:11 PM, #ZHANG SHUHAO# <[email protected]> >> wrote: >> >>> Hi, >>> >>> >>> >>> Thanks for your help, I will consider this solution, but it would better >>> to directly retrieve that information, for example, I want one of my bolt >>> periodically read that information. >>> >>> I will try to wrap it in to my bolt, this could be a solution but it’s >>> not so **native**. Anyway, I will try it first, thanks a lot for your >>> help again. >>> >>> >>> >>> *From:* Santosh Pingale [mailto:[email protected]] >>> *Sent:* Wednesday, October 28, 2015 4:00 PM >>> *To:* [email protected] >>> *Subject:* Re: Obtain the information of storm's builtin metrics >>> >>> >>> >>> What about a REST API which you can consume directly from most of the >>> languages. >>> >>> https://github.com/apache/storm/blob/master/STORM-UI-REST-API.md >>> >>> >>> >>> >>> >>> >>> >>> On Wed, Oct 28, 2015 at 12:08 PM, #ZHANG SHUHAO# <[email protected]> >>> wrote: >>> >>> Any helps? >>> >>> Basically, I want my program read that information instead of looking at >>> the storm UI all the time. >>> >>> >>> >>> *From:* #ZHANG SHUHAO# >>> *Sent:* Sunday, October 25, 2015 12:44 PM >>> *To:* '[email protected]' <[email protected]> >>> *Subject:* Obtain the information of storm's builtin metrics >>> >>> >>> >>> Hi, >>> >>> >>> >>> I wondering any methods to obtain those information (that appears in >>> Storm UI) in my program (instead of exposing to storm UI). >>> >>> I have checked a few related blogs, but they are mainly discussing how >>> to use the metric UI to build our own metric updates in spout or bolt and >>> expose to say, log. >>> >>> Instead of building my own, I just want to get the information that are >>> exposed (internally) to Storm UI, so I would like to see a simple trick to >>> do that. Any hints? help? >>> >>> >>> >>> Thanks. >>> >>> >>> >>> Tony. >>> >>> >>> >> >> >
