Commit Graph
34 Commits
Author SHA1 Message Date
Peter Bourgon 20eb64968b probe: origin host tagger: use report.Topologies method 2015-06-15 14:58:27 +02:00
Peter Bourgon c65aecd9e1 Fix node scoping rules
We only want to scope (i.e. prefix with hostID) those addresses that are
deemed loopback, to disambiguate them. Otherwise, we want to leave
addresses in unscoped form, so they can be matched, and links between
communicating nodes properly made.

So, we make the isLoopback check in MakeAddressID, and omit hostID if
the address isn't loopback. So far so good.

But this breaks topology rendering, as we were relying on extracting
hostID from adjacency node IDs, to populate origin hosts in the rendered
node output. So we need another way to get origin host from an arbitrary
node.

A survey revealed no reliable way to get that information from IDs in
their new form. However, we have access to node metadata, so this
changeset introduces the OriginHostTagger, which tags each node with its
origin host, via the foreign-key semantics we'll use going forward.
2015-06-15 14:36:48 +02:00
Peter Bourgon 8dc44012f0 probe: don't spam logs on Darwin 2015-06-12 12:56:59 +02:00
Tom Wilkie 53456179e4 All merging of RenderableNodes, such that we can merge multiple topologies. 2015-06-11 17:11:10 +00:00
Tom Wilkie ae84861e00 Now we have merged topologies, we don't need to put so much data on the endpoint topology, or render so much info. 2015-06-11 16:57:24 +00:00
Tom Wilkie ff11022862 Add Containers topology populated by the Docker tagger. 2015-06-10 16:01:15 +00:00
Peter Bourgon 7df63d1bc4 Decouple PIDTree from DockerTagger
PIDTree is created in each spy tick, regardless if Docker Tagger is
used.
2015-06-10 17:49:50 +02:00
Peter Bourgon d435e36834 Add and populate Process topology
Also, add comm value (name) to process node metadata.
2015-06-10 17:27:07 +02:00
Tom Wilkie 719f933c21 Refactor MakeAdjacencyID & ParseAdjacencyID; add ParseNodeID (which separates scope and the rest of node id) 2015-06-10 09:21:45 +00:00
Tom Wilkie 5be7235da2 GOOS might be 'linux', but never 'Linux'! 2015-06-09 17:51:05 +00:00
Peter Bourgon b8170313e4 This commit from #182 got lost somehow 2015-06-09 18:08:02 +02:00
Peter Bourgon d438261742 HostMetadata becomes Host Topology
- All HostMetadata information becomes NodeMetadata
- Significant change to mechanics, but same net effect
- LocalNets becomes "local_networks", space-separated list of CIDRs
- Load becomes simple single string
- Use MakeHostNodeID for indexing into Host topology
- (That changes the app /origin/{id} handler; will be removed later)
2015-06-09 15:38:08 +02:00
Peter Bourgon 1e0b83eb6d Merge branch report-fields (#190) 2015-06-09 14:25:54 +02:00
Peter Bourgon f8230d2a00 Merge pull request #185 from weaveworks/id-constructors
ID constructors
2015-06-08 18:06:21 +02:00
Peter Bourgon 4832ee76f3 Add the various ID constructors
- Use constructors instead of ScopeDelim everywhere
- Use constructors instead of IDDelim everywhere
- IDDelim is renamed EdgeDelim, for clarity
- Partial import of the new test fixtures, to be completed later
2015-06-08 17:53:01 +02:00
Tom Wilkie 76d6deb263 Expose containers from DockerTagger for tracer. 2015-06-08 13:28:27 +00:00
Peter Bourgon d486d1074a Refactor process mappers to taggers
- Reduce tagger interface to operate on reports
- Remove cgroup tagger
2015-06-08 15:04:40 +02:00
Peter Bourgon 1278dca1da probe: only allow Docker on Linux
Fixes #173
2015-06-05 17:06:06 +02:00
Peter Bourgon 754eac3152 Rename NewReport -> MakeReport. 2015-06-05 13:55:40 +00:00
Tom Wilkie 9fccb2126a Gracefully shutdown goroutines in the probe. 2015-06-03 14:41:43 +00:00
Tom Wilkie 121c86a52d Use Docker events API instead of polling Docker daemon.
Unfortunately we still have to poll pidtree and docker images, but I think we can get rid of the docker image polling as we only care about images on running containers.
2015-06-02 16:41:32 +00:00
Peter Bourgon 92adbf1c40 Merge pull request #107 from weaveworks/errcheck
Address non-Close errors identified by errcheck
2015-05-26 17:32:04 +02:00
Peter Bourgon 8f6b9895ac Fix errcheck errors in probe 2015-05-26 16:49:47 +02:00
Peter Bourgon bf49e12094 Add Containers topology 2015-05-26 16:37:44 +02:00
Tom Wilkie 18c38a6bf4 Expose docker image id and name 2015-05-26 10:15:23 +00:00
Tom Wilkie b536d1161b Set git version variable at build time. 2015-05-22 13:34:23 +00:00
Peter Bourgon 2d5f58e8ed Expand details pane 2015-05-22 13:20:00 +02:00
Tom Wilkie aa691401fb Merge pull request #51 from tomwilkie/lint
Add lint script, run in circle ci.
2015-05-19 15:00:36 +02:00
Tom Wilkie 6b2bad2090 gofmt fixes 2015-05-19 10:42:52 +00:00
Peter Bourgon 11f85cda1b Remove needless probe -version 2015-05-19 12:22:02 +02:00
Tom Wilkie cb86331fde Remove old makefiles 2015-05-19 10:05:07 +00:00
Peter Bourgon 64f17e682d Remove old references 2015-05-19 10:05:03 +00:00
Peter Bourgon 0e19360215 Redo import statements 2015-05-19 10:02:59 +00:00
Tom Wilkie d50e827fd5 Intial commit 2015-05-19 10:02:02 +00:00