You can also make a call to /api/v1/topology/summary to get a list of topologies
On Sun, Dec 14, 2014, at 12:50 PM, Manoj Jaiswal wrote:
Why dont you use the storm list command and use the output to make up the url.
That will give the topology name,
Else you can do a ls on storm local directory to get exact id of toplogy.
Additionally you can query zookeeper for storm node directory and you will get topology id from there.
Hope this helps.
I’m currently looking at ways to leverage the Storm HTTP APIs to monitor the health of our storm cluster and a running topology in particular. I can get all the statistics I need when I know a particular topology ID, parsing the json returned from a URL like: http://servername:8080/api/v1/topology/production-topology-1418162192
with our existing monitoring apparatus.
The problem is that I can’t setup a fixed URL for our monitoring systems because Storm builds it’s own ID from the topology name: name + nonce. As it stands, I'd need to write code to list all running topologies and parse out the one I’m interested in, requiring a an application layer I don’t want to write at the moment. Is it possible to override Storm’s appending the nonce, forcing it to use the specific ID string I want?
thanks in advance