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

Reply via email to