8000 `sparse stats` sub-command for fetching cluster/topo statistics · Issue #17 · pystorm/streamparse · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sparse stats sub-command for fetching cluster/topo statistics #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
amontalenti opened this issue Jun 3, 2014 · 3 comments
Closed

Comments

@amontalenti
Copy link
Contributor

This Clojure file implements the whole Storm UI, basically:

https://github.com/apache/incubator-storm/blob/master/storm-core/src/clj/backtype/storm/ui/core.clj

We could use a similar recipe in our Clojure interop project to fetch cluster/topology statistics from the Nimbus over the Thrift interface. We could then expose this in the command-line tool via sparse stats. I'm imaging an ideal implementation might be an htop-like curses interface that live refreshes stats from the cluster, but even some basic pretty-printed tables could be a good start.

@amontalenti amontalenti added this to the v0.1.0 milestone Jun 18, 2014
@tdhopper
Copy link
Contributor
tdhopper commented Aug 7, 2014

That core.clj file actually defines a restful api (via compojure) that runs on the storm head. The 'topology summary' page is populated by

https://path.to.head:8080/api/v1/topology/index-id.

We have the path to the head from config.json (assuming nimbus and head are always on the same machine on different ports?). We can get the index-id from https://path.to.head:8080/api/v1/topology/summary.

Somehow the local streamparse client will need to authenticate on the storm head to access the api. I'm going to try to sort that out.

@tdhopper
Copy link
Contributor
tdhopper commented Aug 7, 2014

Determined I can ssh into Storm head and access the API without authenticating. PR coming.

@tdhopper
Copy link
Contributor
tdhopper commented Aug 8, 2014

Someone on our team noted that ssh tunnelling won't always be necessary (which I assumed it is). I'll fix.

@dan-blanchard dan-blanchard modified the milestones: v1.1, v1.2 Apr 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0