cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

ui: easy links from one node's admin UI to another one's

Open andreimatei opened this issue 8 years ago • 6 comments

For some debug pages, you want to be on a specific node (e.g. logspy). It'd be really cool if the admin UI would let me jump from a node to another, or at least if it printed (all?) the IPs of all the node's so that I can construct the URL by hand.

Particularly with roachprod clusters, it's not trivial to go from a node id to an IP - the order of nodes does not generally correspond to the order of machines in the roachprod cluster. Anything you can give me here, I'll take.

andreimatei avatar Oct 17 '18 22:10 andreimatei

Related to #31540

vilterp avatar Oct 17 '18 23:10 vilterp

It would be really cool. Unfortunately there's an awful lot outside our control, we can't necessarily construct the correct URL with the information we have at hand.

However, we could make a best-effort attempt by making the assumption that the same hostname that has the RPC port open has the HTTP port open. This is good enough for a debug page.

couchand avatar Oct 24 '18 20:10 couchand

@elkmaster @piyush-singh Here is a link to designs for adding node links in the Advanced Debug page. Let me know if you think this works: https://zpl.io/adGNv9E

Annebirzin avatar Jan 28 '20 21:01 Annebirzin

@nkodali did you not like this, or did something happen here? I'm constantly finding myself wanting this.

andreimatei avatar Mar 23 '21 21:03 andreimatei

Reopening this, but please tell me if I'm wrong.

andreimatei avatar Mar 26 '21 15:03 andreimatei

I think https://github.com/cockroachdb/cockroach/pull/72659 satisfies this need

dhartunian avatar Feb 10 '22 15:02 dhartunian