Make render module produce The Internet pseudo node.

This commit is contained in:
Tom Wilkie
2015-06-19 11:09:52 +00:00
parent f32d2b5a5e
commit 49dae07cca
19 changed files with 349 additions and 311 deletions
+3 -1
View File
@@ -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 {
+1
View File
@@ -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(),
}
}