Commit Graph
4503 Commits
Author SHA1 Message Date
Tom Wilkie b9e968ff43 Cache the walk of the process tree, reusing it in docker tagger and process reporter.
Update the cache every spy tick.

This change make CPU usage of scope on my box go from ~40% to ~17%.
2015-06-29 11:16:38 +00:00
David 7e76fd3ac9 Merge pull request #285 from weaveworks/test-bundle
Fail make static on build JS build errors
2015-06-25 17:46:13 +02:00
David Kaltschmidt 934082bca1 fail make static on build JS build errors
fixes #277
2015-06-25 17:12:08 +02:00
Tom Wilkie 09de188c76 Merge pull request #283 from tomwilkie/281-process-name
Trim whitespace from process names
2015-06-25 10:38:27 +02:00
Tom Wilkie eb250ecb7c Trim whitespace from process names
This causes detailed node lookups for the grouped-by-process-name view to fail.  Also, add a test for process walker trimmming whitespace, and a test the process-by-name view gives the right result.
2015-06-24 14:01:17 +00:00
Paul Bellamy 81239f04ed Merge pull request #280 from tomwilkie/251-flaky
Increase timeouts to prevent flakiness.
2015-06-24 13:08:34 +01:00
Paul Bellamy 7cd0465f42 Merge pull request #279 from tomwilkie/260-report-fixture
Only have a single report fixture
2015-06-24 13:07:06 +01:00
Tom Wilkie bd4556f6c3 Add timeout on example client. 2015-06-24 11:07:35 +00:00
Tom Wilkie 5e4cfc57e5 Use a repo name on example images. 2015-06-24 10:34:20 +00:00
Tom Wilkie 175c488d74 Increase timeouts to prevent flakiness. 2015-06-24 10:03:26 +00:00
Tom Wilkie 416f56c3cc Only have a single report fixture
- Move render.Rpt to test.Report
- Remove report/report_fixture_test.go; it was unused
- Remove report fixture in app/ and make tests use test.Report
- Move expected outputs into render/expected, so they can be reused
2015-06-24 09:51:29 +00:00
Paul Bellamy 4bf859158b Merge pull request #278 from tomwilkie/214-image-pulling
Fail quickly in the ./scope script.
2015-06-23 17:40:23 +01:00
David 071375f9eb Merge pull request #246 from weaveworks/cleanup-unused
Removed unused grouping and explorer code
2015-06-23 17:45:06 +02:00
Tom Wilkie ead58a3483 Make scope compile on Mac again. 2015-06-23 15:41:12 +00:00
David Kaltschmidt 8d2e62b5c9 updated static.go 2015-06-23 17:24:57 +02:00
Tom Wilkie f3811726f9 Merge pull request #276 from tomwilkie/261-order-details
Fix order of tables in details panel to go from most to least granular.
2015-06-23 17:15:33 +02:00
Tom Wilkie 93cf639418 Fix order of tables in details panel to go from most to least granular. 2015-06-23 15:09:20 +00:00
Tom Wilkie eafa040a6d Fail quickly in the ./scope script. 2015-06-23 14:29:54 +00:00
Tom Wilkie 6eef959fab Merge pull request #274 from tomwilkie/probe-host
Move probe host topology code into its own module
2015-06-23 15:55:42 +02: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 d01eaff302 Merge pull request #270 from tomwilkie/245-docker-port-traverse
Duplicate endpoints in the endpoint topology to account for NAT mapping.
2015-06-23 12:37:35 +02:00
Tom Wilkie a4ddd0094f Duplicate endpoints in the endpoint topology to account for NAT mapping.
Also, move spy.go into probe/endpoint and make it adhere to the Reporter interface.
2015-06-23 10:33:06 +00:00
Tom Wilkie d3d10fe958 Merge pull request #272 from tomwilkie/process-details
Improve process code in probe
2015-06-23 11:45:14 +02:00
Tom Wilkie 560cf66454 Refactor PIDTree
- Move pidtree to its own module and disaggregate it into tree, walker and reporter.
- Extend testing for probe/process
- Extend process metadata; add command line & # threads.
2015-06-23 09:40:35 +00:00
Tom Wilkie 744ecc86ac Merge pull request #271 from tomwilkie/268-ids
Extract out rendered node id generation into a small set of functions.
2015-06-23 09:55:06 +02: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 99d797733c Merge pull request #264 from tomwilkie/127-per-host-uncontained
Emit per-host Uncontained pseudo nodes.
2015-06-22 12:48:46 +02:00
Tom Wilkie 25016dbba5 Emit per-host Uncontained pseudo nodes. 2015-06-22 10:35:00 +00:00
Tom Wilkie 608abf0e4f Merge pull request #262 from tomwilkie/more-detials
Expose some more information on containers.
2015-06-19 15:15:21 +02:00
Tom Wilkie c793e86d5b Expose some more information on containers. 2015-06-19 13:02:07 +00:00
Tom Wilkie 5be48b27d2 Merge pull request #258 from tomwilkie/200-no-more-squash
Refactor away Squash logic
2015-06-19 14:43:50 +02:00
Tom Wilkie 49dae07cca Make render module produce The Internet pseudo node. 2015-06-19 11:09:52 +00:00
Tom Wilkie f32d2b5a5e Remove report squash logic. 2015-06-18 17:20:20 +00:00
Tom Wilkie e8a9c3c6e1 Merge pull request #257 from tomwilkie/237-docker-tests
More tests for docker integration
2015-06-18 19:17:04 +02:00
Tom Wilkie 314af5ca89 Improve probe docker code quality & test coverage.
- Move docker probe code into it's own module
- Put PIDTree behind and interface for mocking
- Disaggregate dockerTagger into a registry, tagger and reporter
- Similarly disaggregate tests
- Add mocks for docker container and registry
- Add test for docker events & stats
2015-06-18 17:09:33 +00:00
Tom Wilkie a6ef295bd8 Merge pull request #254 from tomwilkie/230-container-image-topology
Add ContainerImage topology and use it to build the Container By Image graph.
2015-06-18 18:06:10 +02: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 e9ae65b19d Merge pull request #255 from tomwilkie/move-aggregate
Move AggregateMetadata into render package.
2015-06-18 10:37:16 +02:00
Tom Wilkie f971ac12bf Move AggregateMetadata into render package. 2015-06-17 19:26:13 +00:00
Tom Wilkie 5d7c860c5d Merge pull request #248 from tomwilkie/228-dev
Produce containers topology from endpoints via processes
2015-06-17 20:28:05 +02:00
Tom Wilkie 0e029fe9bc Fix fluttering issue. 2015-06-17 18:18:57 +00:00
Tom Wilkie f30539601d Restore docker tagging to the endpoint topology until we have the docker images topology. 2015-06-17 17:29:37 +00:00
Tom Wilkie 18c544701a Review feedback 2015-06-17 17:23:33 +00:00
Tom Wilkie ee9ac591fd DockerTagger should tag the Process topology now. 2015-06-17 17:23:31 +00:00
Tom Wilkie 7e021baf3b Add test for MakeDetailedNode. 2015-06-17 17:23:30 +00:00
Tom Wilkie 786a1588ea Don't emit process name and domain from procspy. 2015-06-17 17:23:29 +00:00
Tom Wilkie c764164d83 Non-leaf (derived) mappers should not propogate their NodeMetadata. 2015-06-17 17:23:27 +00:00
Tom Wilkie 75b5e07482 Add test for ContainerRenderer and make tests in /app pass. 2015-06-17 17:23:26 +00:00