Storm UI will only show built-in metrics by default. The metrics consumer
you are registering is actually writing your metrics to a log file.

On Wed, Sep 2, 2015 at 12:03 AM, Ferenc Turi <[email protected]> wrote:

> Hi,
>
> I have seen some web pages about storm metrics but in the 0.10.0-beta1
> version the Strom UI does not show anything.
>
> What I did:
>
> I registered the LoggingMetrics consumer on the topology configuration:
>
> conf.setDebug(true)
> conf.registerMetricsConsumer(LoggingMetricsConsumer.class, 2);
>
> And in the bolt:
>
> prepare(,,,){
> mainMetrics = new MultiCountMetric();
> context.registerMetric("mainMetrics", mainMetrics, 1);
> }
>
> execute(){
> mainMetrics.scope("recnum").incrBy(ms);
> }
>
> What else should I do to be able to see the results in UI?
>
> (I also clicked on "show system stats" and the metrics.log is also empty)
>
> I can see the metrics in the worker log as DataPoint-s but UI does not
> show me the stats.
>
> Thanks,
>
>

Reply via email to