mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
adding direction to connections from conntrack
* Remove report.EdgeMetadata.MaxConnCountTCP, as we don't display it anywhere * Remove hostname metadata from local end of connection. We should be using the hostnodeid
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
"EdgeMetadatas": {
|
||||
";192.168.1.1;10746|theinternet": {
|
||||
"WithConnCountTCP": true,
|
||||
"MaxConnCountTCP": 19
|
||||
}
|
||||
},
|
||||
"NodeMetadatas": {
|
||||
@@ -43,7 +42,6 @@
|
||||
"EdgeMetadatas": {
|
||||
";192.168.1.1|theinternet": {
|
||||
"WithConnCountTCP": true,
|
||||
"MaxConnCountTCP": 12
|
||||
}
|
||||
},
|
||||
"NodeMetadatas": {
|
||||
|
||||
@@ -94,16 +94,12 @@ func demoReport(nodeCount int) report.Report {
|
||||
process.PID: "4000",
|
||||
"name": c.srcProc,
|
||||
"domain": "node-" + src,
|
||||
}).WithEdge(dstPortID, report.EdgeMetadata{
|
||||
MaxConnCountTCP: newu64(uint64(rand.Intn(100) + 10)),
|
||||
}))
|
||||
}).WithEdge(dstPortID, report.EdgeMetadata{}))
|
||||
r.Endpoint = r.Endpoint.AddNode(dstPortID, report.MakeNode().WithLatests(map[string]string{
|
||||
process.PID: "4000",
|
||||
"name": c.dstProc,
|
||||
"domain": "node-" + dst,
|
||||
}).WithEdge(srcPortID, report.EdgeMetadata{
|
||||
MaxConnCountTCP: newu64(uint64(rand.Intn(100) + 10)),
|
||||
}))
|
||||
}).WithEdge(srcPortID, report.EdgeMetadata{}))
|
||||
|
||||
// Address topology
|
||||
r.Address = r.Address.AddNode(srcAddressID, report.MakeNode().WithLatests(map[string]string{
|
||||
|
||||
@@ -68,16 +68,12 @@ func DemoReport(nodeCount int) report.Report {
|
||||
"pid": "4000",
|
||||
"name": c.srcProc,
|
||||
"domain": "node-" + src,
|
||||
}).WithEdge(dstPortID, report.EdgeMetadata{
|
||||
MaxConnCountTCP: newu64(uint64(rand.Intn(100) + 10)),
|
||||
}))
|
||||
}).WithEdge(dstPortID, report.EdgeMetadata{}))
|
||||
r.Endpoint = r.Endpoint.AddNode(dstPortID, report.MakeNode().WithLatests(map[string]string{
|
||||
"pid": "4000",
|
||||
"name": c.dstProc,
|
||||
"domain": "node-" + dst,
|
||||
}).WithEdge(srcPortID, report.EdgeMetadata{
|
||||
MaxConnCountTCP: newu64(uint64(rand.Intn(100) + 10)),
|
||||
}))
|
||||
}).WithEdge(srcPortID, report.EdgeMetadata{}))
|
||||
|
||||
// Address topology
|
||||
r.Address = r.Address.AddNode(srcAddressID, report.MakeNode().WithLatests(map[string]string{
|
||||
|
||||
Reference in New Issue
Block a user