Thanks Harsha.
Your solution is more elegant.

-Manoj

On Sun, Dec 14, 2014 at 10:27 PM, Harsha <[email protected]> wrote:
>
>  Sheldon,
>       You can also make a call to /api/v1/topology/summary to get a list
> of topologies
>
> https://github.com/apache/storm/blob/master/STORM-UI-REST-API.md#apiv1topologysummary-get
>
> -Harsha
>
> 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.
>
> ls /home/storm/storm-local/nimbus/stormdist
>
> Additionally you can query zookeeper for storm node directory and you will
> get topology id from there.
>
>
> Hope this helps.
>
> -Manoj
>
>
> On Fri, Dec 12, 2014 at 1:52 PM, Sheldon White <[email protected]>
> wrote:
>
> 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
>
> [email protected]
>
>
>

Reply via email to