mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 11:56:39 +00:00
Make render module produce The Internet pseudo node.
This commit is contained in:
+3
-1
@@ -115,13 +115,15 @@ func main() {
|
||||
select {
|
||||
case <-pubTick:
|
||||
publishTicks.WithLabelValues().Add(1)
|
||||
r.Host = hostTopology(hostID, hostName)
|
||||
publisher.Publish(r)
|
||||
r = report.MakeReport()
|
||||
|
||||
case <-spyTick:
|
||||
r.Merge(spy(hostID, hostName, *spyProcs))
|
||||
|
||||
// Do this every tick so it gets tagged by the OriginHostTagger
|
||||
r.Host = hostTopology(hostID, hostName)
|
||||
|
||||
// TODO abstract PIDTree to a process provider, and provide an
|
||||
// alternate implementation for Darwin.
|
||||
if runtime.GOOS == linux {
|
||||
|
||||
@@ -54,6 +54,7 @@ func addConnection(
|
||||
if _, ok := r.Address.NodeMetadatas[scopedLocal]; !ok {
|
||||
r.Address.NodeMetadatas[scopedLocal] = report.NodeMetadata{
|
||||
"name": hostName,
|
||||
"addr": c.LocalAddress.String(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user