Skip to content
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

Replace "Origin Endpoint" tables with "Connection Details" table #298

Merged
merged 4 commits into from Jul 3, 2015

Conversation

paulbellamy
Copy link
Contributor

Aggregates all connections into a single table. Only shows Local and Remote endpoints. Connection age to be added later.

Helps #154, but needs timestamps to fully fix it.

screen shot 2015-06-30 at 13 22 31

adjacencies := endpointTopology.Adjacency[report.MakeAdjacencyID(originID)]
sort.Strings(adjacencies)
for _, adj := range adjacencies {
segments := strings.SplitN(adj, report.ScopeDelim, 3)

This comment was marked as abuse.

@@ -79,6 +79,7 @@ func MakeDetailedNode(r report.Report, n RenderableNode) DetailedNode {
// multiple origins. The ultimate goal here is to generate tables to view
// in the UI, so we skip the intermediate representations, but we could
// add them later.
connections := []Row{}
outer:
for _, id := range n.Origins {
if table, ok := OriginTable(r, id); ok {

This comment was marked as abuse.

} {
if val, ok := nmd[tuple.key]; ok {
rows = append(rows, Row{Key: tuple.human, ValueMajor: val, ValueMinor: ""})
local := fmt.Sprintf("%s:%s", nmd["addr"], nmd["port"])

This comment was marked as abuse.

@@ -103,6 +103,16 @@ func ParseNodeID(nodeID string) (hostID string, remainder string, ok bool) {
return fields[0], fields[1], true
}

// ParseEndpointNodeID produces the host ID, address, and port and remainder (typically an address) from
// an endpoint node ID. Note that hostID may be blank.

This comment was marked as abuse.

@peterbourgon
Copy link
Contributor

👍

@peterbourgon peterbourgon removed their assignment Jul 2, 2015
paulbellamy added a commit that referenced this pull request Jul 3, 2015
Replace "Origin Endpoint" tables with "Connection Details" table
@paulbellamy paulbellamy merged commit 94a0ace into weaveworks:master Jul 3, 2015
@paulbellamy paulbellamy deleted the 154-inspect-connections branch July 3, 2015 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants