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 < [email protected]>: > 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>* >
