Tom Wilkie
d3aa975eb9
In containers view, show short lived connections to/from the internet by including port mappings in the join.
2015-10-01 16:31:38 +00:00
Tom Wilkie
15417b6b02
Show container image details for containers.
2015-09-22 05:48:18 +00:00
Tom Wilkie
8b424df2be
Review feedback.
2015-09-16 09:29:42 +00:00
Tom Wilkie
fcb7c47bd9
Always include endpoint nodes brought in by procspy, even if they get merged with conntracked endpoints.
2015-09-16 03:46:15 +00:00
Tom Wilkie
b7598c376e
Don't show shortlived connections in the host view.
2015-09-15 10:03:04 +00:00
Alfonso Acosta
ebefa5e8f0
Use label "com.amazonaws.ecs.container-name" to render container names
2015-09-07 20:52:13 +00:00
Tom Wilkie
85bfcddb3f
Prevent short lived connections appearing as pseudo nodes in the applications view.
2015-09-06 16:26:57 +00:00
Tom Wilkie
ccf6c1fdca
Make container rank the image _name_
2015-09-04 10:16:17 +00:00
Tom Wilkie
57f7b4f2e6
Rename NodeMetadata -> Node
2015-09-03 16:18:54 +00:00
Tom Wilkie
d09a853fb2
Show container image details for containers.
2015-09-03 10:26:13 +00:00
Tom Wilkie
9ba38d71cc
Review feedback
2015-09-03 10:19:27 +00:00
Tom Wilkie
21675f3000
Remove LeafMap - have a generic function which converts a Topology to a RenderableNodes.
2015-09-02 15:03:57 +00:00
Tom Wilkie
61f45b2306
In the Endpoint && Addr topology, we can't assume pseudo nodes have an adjacency coming _from_ them.
2015-09-02 13:37:09 +00:00
Tom Wilkie
1f6b3d4a45
Move Adjacency info inside the NodeMetadata struct; move pseudo node generation to the probes.
2015-08-28 15:20:27 +00:00
Tom Wilkie
903a51397b
Review feedback
2015-08-28 09:19:56 +00:00
Tom Wilkie
55c77c6a37
Enhance the containers topology with information directly joined from endpoints, via IP address foreign key.
2015-08-27 16:29:35 +00:00
Tom Wilkie
e4970f9214
Give mapping functions the ability to return multiple nodes.
2015-08-27 16:29:32 +00:00
Tom Wilkie
4bcdfc507f
Typo
2015-08-19 15:04:56 +00:00
Tom Wilkie
08e1090a65
Merge pull request #369 from weaveworks/336-show-counts
...
Show how many containers have been grouped together under an image
2015-08-19 15:42:00 +01:00
Tom Wilkie
7508df7e5b
Add NodeMetadata.Counters with appropriate merge semantics
2015-08-19 14:24:21 +00:00
Tom Wilkie
6f1f453098
Review feedback
2015-08-19 12:22:28 +00:00
Tom Wilkie
60d1b503c1
Deal with directed edges in the rest of the codebase.
2015-08-19 10:17:31 +00:00
Tom Wilkie
8c4bbdae8c
Show how many containers have been grouped together under an image
2015-08-18 12:47:44 +00:00
Peter Bourgon
b3868c58d7
Fix a subtle bug in render mapping
...
During rendering, RenderableNodes are created by Map funcs, which take only
NodeMetadata. Previously, it was simply assumed that the relevant keys for a
given Map func would be present in the metadata. If that implicit invariant
failed, the returned RenderableNode would be invalid, with e.g. an ID of
"hostid::". That, in turn, would trigger undefined behavior later on in the
rendering workflow.
This bug was detected by creating a partial node metadata for a non-local
endpoint node. That node was detected during the first phase of rendering, and
given an invalid renderable node ID of "myhostname::", which prevented it from
attaching to TheInternet pseudonode. It eventually got removed from the set
of valid nodes, which meant nodes that were adjacent to it suddenly became
orphans, and got filtered out by the FilterUnconnected step of the rendering
pipeline.
With this change, every map func checks for the presence of mandatory fields,
i.e. the fields that compose the resulting renderable node's ID.
Also,
- Add unit tests for LeafMapFuncs
- Topology Validate checks NodeMetadatas must not have nil Metadata
2015-08-03 10:43:07 +02:00
Peter Bourgon
fc308d93b8
Normalize var names; use Addr/Port key constants
2015-07-30 16:36:27 +02:00
Peter Bourgon
6f414ac89c
Process rank by comm (app name)
2015-07-22 10:51:58 +01:00
Tom Wilkie
c2065836e2
Make NodeMetadata a struct, move existing map[string]string to NodeMetadata.Metadata
2015-07-15 10:06:36 +00:00
Tom Wilkie
14470aa107
Use container name (minus version) as id in containers-by-image view.
...
Also:
- build a custom URL matcher to cope with container image names having a encoded forward slash in them.
- escape node ids in the UI when constructing URLs.
- add a test which fetches all the nodes of all topologies, and update report fixture to have slash in container image names.
2015-07-01 12:53:47 +00:00
Tom Wilkie
626320d7f4
Move probe host topology code into its own module
...
- add tests
- use constants for NodeMetadata keys
- add host uptime and kernel version
2015-06-23 13:31:22 +00:00
Tom Wilkie
152774a812
Extract out rendered node id generation into a small set of functions.
2015-06-23 07:42:17 +00:00
Tom Wilkie
ccb6bb94c1
Merge pull request #269 from tomwilkie/265-docker-bridge
...
Treat addresses on the docker bridge as local.
2015-06-22 15:55:37 +02:00
Tom Wilkie
82a7f93e17
Treat addresses on the docker bridge as local.
2015-06-22 11:24:47 +00:00
Tom Wilkie
25016dbba5
Emit per-host Uncontained pseudo nodes.
2015-06-22 10:35:00 +00:00
Tom Wilkie
c793e86d5b
Expose some more information on containers.
2015-06-19 13:02:07 +00:00
Tom Wilkie
49dae07cca
Make render module produce The Internet pseudo node.
2015-06-19 11:09:52 +00:00
Tom Wilkie
25ca0c0eb7
Add ContainerImage topology and use it to build the Container By Image graph.
...
This makes container image details show the containers (and processes) correctly.
Also:
- introduces a 'test' package, moved Diff function there.
- adds some tests for this new rendered view.
2015-06-18 09:16:20 +00:00
Tom Wilkie
18c544701a
Review feedback
2015-06-17 17:23:33 +00:00
Tom Wilkie
75b5e07482
Add test for ContainerRenderer and make tests in /app pass.
2015-06-17 17:23:26 +00:00
Tom Wilkie
3de721bb16
Make topologies_test.go pass.
2015-06-17 17:23:24 +00:00
Tom Wilkie
546f336fef
Add FilterUnconnected Renderer, wire up Process and ProcessName Renderers.
2015-06-17 17:23:21 +00:00
Tom Wilkie
16e2ccd2be
Produce the container topology by way of the process topology.
2015-06-17 17:23:20 +00:00
Tom Wilkie
a759db8931
Rename Map -> LeafMap, introduce Map (with tests)
2015-06-17 17:23:19 +00:00
Tom Wilkie
2a4a33f30a
Move RenderableNode and DetailedNode into render/
2015-06-16 15:37:08 +00:00
Tom Wilkie
ae9ea5c97f
Move mapping functions and main render function in render package.
2015-06-16 14:23:56 +00:00