You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Felipe Gutierrez <fe...@gmail.com> on 2019/03/21 12:25:43 UTC
How to emit metrics from remote Storm worker to a Graphite server
when using a customized IScheduler?
Hi,
I was collecting metrics nicely from Apache Storm to Graphite. Then I
developed a customized scheduler which implements the IScheduler interface,
and now on I cannot collect any metrics.
Here is my scheduler:
https://github.com/felipegutierrez/explore-storm/blob/master/src/main/java/org/sense/storm/scheduler/SiteAwareScheduler.java
I am using this library (https://github.com/staslev/storm-metrics-reporter)
to collect metrics and send it to Graphite server.
The "prepare" method of the IScheduler does not have TopologyContext so I
don't know where to instantiate my metrics with the new scheduler.
Any hints?
Thanks
Felipe
*--*
*-- Felipe Gutierrez*
*-- skype: felipe.o.gutierrez*
*--* *https://felipeogutierrez.blogspot.com
<https://felipeogutierrez.blogspot.com>*
Re: How to emit metrics from remote Storm worker to a Graphite server
when using a customized IScheduler?
Posted by Stig Rohde Døssing <st...@gmail.com>.
Why are you trying to set up your metrics from your scheduler class? The
scheduler runs as part of Nimbus, presumably you would want to set up
metrics in your worker JVMs. Why not do the metrics setup in your bolts'
prepare methods, rather than the scheduler, as in this example
https://github.com/staslev/storm-metrics-reporter/wiki/Custom-metrics?
Den tor. 21. mar. 2019 kl. 13.26 skrev Felipe Gutierrez <
felipe.o.gutierrez@gmail.com>:
> Hi,
>
> I was collecting metrics nicely from Apache Storm to Graphite. Then I
> developed a customized scheduler which implements the IScheduler interface,
> and now on I cannot collect any metrics.
>
> Here is my scheduler:
> https://github.com/felipegutierrez/explore-storm/blob/master/src/main/java/org/sense/storm/scheduler/SiteAwareScheduler.java
>
> I am using this library (https://github.com/staslev/storm-metrics-reporter)
> to collect metrics and send it to Graphite server.
>
> The "prepare" method of the IScheduler does not have TopologyContext so I
> don't know where to instantiate my metrics with the new scheduler.
>
> Any hints?
> Thanks
> Felipe
>
> *--*
> *-- Felipe Gutierrez*
>
> *-- skype: felipe.o.gutierrez*
> *--* *https://felipeogutierrez.blogspot.com
> <https://felipeogutierrez.blogspot.com>*
>