How to get Jstorm get tuplelifecycle time

35 Views Asked by At

My question:I want to monitor the duration of each data in storm. How should I do?Are there any demos?I can only count the duration of each bolt processing.

1

There are 1 best solutions below

0
On

In both apache-storm and jstorm, you can get data of the monitor, and export that to whereever you want.

In storm, use Metrics Consumer (see http://storm.apache.org/releases/1.0.6/Metrics.html).

And in jstorm, use metrics uploader (see http://jstorm.io/Maintenance/JStormMetrics.html)

And there is a jstorm metricsUploader example here: https://github.com/lcy362/StormTrooper/blob/master/src/main/java/com/trooper/storm/monitor/MetricUploaderTest.java