You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Bala <kb...@yahoo.com> on 2020/02/13 23:48:54 UTC
Custom metrics not showing up in storm U - Storm version 1.1.0
I am using the storm API to define and register custom metrics for the bolt. But I am not getting any stats about that metrics either in the Storm UI or the REST API? Do I need to do anything to make the custom metrics show up in the UI/REST API?
ThanksBala
Re: Custom metrics not showing up in storm U - Storm version 1.1.0
Posted by Ethan Li <et...@gmail.com>.
Sent too fast.
First of all, user defined metrics will not show up on Storm UI or REST API.
You can send your metrics to somewhere else. You need to register metric consumers. Please check https://github.com/apache/storm/blob/v1.1.0/docs/Metrics.md#metrics-consumer <https://github.com/apache/storm/blob/v1.1.0/docs/Metrics.md#metrics-consumer>
Where you can get the metrics depending on how your metric consumer looks like. For example, with org.apache.storm.metric.LoggingMetricsConsumer, metrics will be written to the log file.
Best,
Ethan
> On Mar 5, 2020, at 10:36 PM, Ethan Li <et...@gmail.com> wrote:
>
> Hi Bala,
>
>
> You need to register metric consumers. Please check https://github.com/apache/storm/blob/v1.1.0/docs/Metrics.md#metrics-consumer <https://github.com/apache/storm/blob/v1.1.0/docs/Metrics.md#metrics-consumer>
>
> Best
> Ethan
>
>
>> On Feb 13, 2020, at 5:48 PM, Bala <kbkreddy@yahoo.com <ma...@yahoo.com>> wrote:
>>
>> I am using the storm API to define and register custom metrics for the bolt. But I am not getting any stats about that metrics either in the Storm UI or the REST API? Do I need to do anything to make the custom metrics show up in the UI/REST API?
>>
>> Thanks
>> Bala
>
Re: Custom metrics not showing up in storm U - Storm version 1.1.0
Posted by Ethan Li <et...@gmail.com>.
Hi Bala,
You need to register metric consumers. Please check https://github.com/apache/storm/blob/v1.1.0/docs/Metrics.md#metrics-consumer <https://github.com/apache/storm/blob/v1.1.0/docs/Metrics.md#metrics-consumer>
Best
Ethan
> On Feb 13, 2020, at 5:48 PM, Bala <kb...@yahoo.com> wrote:
>
> I am using the storm API to define and register custom metrics for the bolt. But I am not getting any stats about that metrics either in the Storm UI or the REST API? Do I need to do anything to make the custom metrics show up in the UI/REST API?
>
> Thanks
> Bala