Commit Graph

2029 Commits

Author SHA1 Message Date
Tom Wilkie
cb52acbc46 Add pod delete control
- Push shortcut reports when pods are created/deleted
- Buffer upto 2 reports instead of dropping them
2016-04-28 14:48:05 +01:00
Paul Bellamy
64450a4830 Merge pull request #1371 from weaveworks/1219-grouped-node-counts-2
Fixing grouped node count for filtered children nodes
2016-04-28 13:30:15 +01:00
Tom Wilkie
7631116ff5 Add explicity PathReplace middleware (#1393) 2016-04-28 12:28:44 +01:00
Paul Bellamy
3d3aed2bb3 Fixing grouped node count for filtered children nodes
Squash of:

* We have to keep all the container hostnames until the end so we can
  count how many we've filtered

* Adding tests for ContainerHostnameRenderer and PodServiceRenderer with
  filters

* Because we filter on image name we need the image name before
  filtering

* Alternative approach to passing decorators.

* Refactor out some of the decorator capture

* Don't memoise decorated calls to Render

* Fixing filtered counts on containers topology

  Tricky, because we need the filters to be silent sometimes (when they're
  in the middle), but not when they're at the top, so we take the "top"
  filter's stats. However, this means we have to compose all
  user-specified filters into a single Filter layer, so we can get all
  stats.

  There are no more Silent filters, as all filters are silent (unless they
  are at the top).

  Additionally, I clarified some of the filters as their usage/terminology
  was inconsistent and confused. Now Filter(IsFoo, ...) *keeps* only nodes
  where IsFoo is true.
2016-04-28 12:23:43 +01:00
Alfonso Acosta
661185cb70 Use upstream helm k8s resources 2016-04-28 10:43:08 +01:00
Paul Bellamy
0f3b6bc497 Merge pull request #1381 from weaveworks/middleware
Add generic path rewrite middleware
2016-04-27 14:51:03 +01:00
Tom Wilkie
455b599074 Fix tracer build, ensure its built on circle. (#1387) 2016-04-27 12:15:04 +01:00
Tom Wilkie
e81b1b98e9 Add generic path rewrite middleware
And fix a bug in the logging middleware.
2016-04-26 14:43:48 +01:00
Paul Bellamy
3bfb8c4c85 Merge pull request #1356 from pidster/1355-add-swarm-to-system-containers
Add swarm-agent, swarm-agent master to sys container filters
2016-04-26 11:08:38 +01:00
Paul Bellamy
9adbfa9f50 Merge pull request #1378 from weaveworks/1343-k8s-external-ip
Show the k8s load balancer IP if it is set
2016-04-26 11:08:11 +01:00
Paul Bellamy
6c491c7ae8 Merge pull request #1377 from weaveworks/1322-probe-name-and-version
Report hostname and version in probe struct, and version in host node.
2016-04-26 10:48:04 +01:00
Tom Wilkie
b05ef74552 Report hostname and version in probe struct, and version in host node. 2016-04-26 09:25:15 +01:00
Tom Wilkie
0d2e2cda8f Detect if sudo is required by running 'docker info' 2016-04-26 09:25:09 +01:00
pidster
0c2e9347d0 remove prefix slash 2016-04-25 14:54:09 +01:00
Paul Bellamy
d559a6c160 Show the k8s load balancer IP if it is set 2016-04-25 14:45:53 +01:00
Paul Bellamy
10c6eaa6d2 Merge pull request #1374 from weaveworks/815-container-image-labels
Don't show container labels on container images
2016-04-25 13:05:41 +01:00
Paul Bellamy
a374ad334a Don't show container labels on container images
Images have their own labels. We can still use the container labels for
filtering, as the filters are "System Containers", not "System Images".
2016-04-25 10:32:33 +01:00
Paul Bellamy
fdaafd2208 Check counters on expected rendered topologies 2016-04-22 14:14:31 +01:00
Paul Bellamy
e7ebb83e23 Prune is only used in tests, so let's move it there 2016-04-22 14:14:30 +01:00
Paul Bellamy
1539e668e7 Merge pull request #1290 from weaveworks/remove-container-control
Add control for removing stopped docker containers.
2016-04-22 14:13:40 +01:00
Paul Bellamy
f727bd6c21 Merge pull request #1360 from weaveworks/render-reorg
Reorganise the render/ package
2016-04-22 11:51:38 +01:00
Tom Wilkie
cfda4c8404 Review feedback 2016-04-22 11:07:07 +01:00
Tom Wilkie
087be057f2 Add ability for fixprobe to send the report from test/fixture 2016-04-22 11:07:07 +01:00
Tom Wilkie
22e8418e7a Reorganise the render/ package 2016-04-22 11:07:07 +01:00
Paul Bellamy
a4e68b9598 Merge pull request #1363 from weaveworks/1072-docker-rm
Immediately remove deleted containers from the UI.
2016-04-22 10:29:14 +01:00
Tom Wilkie
901f46c5fc Report if newer version are availible in /api (#1366)
* Report if newer version are availible in /api

* Render version update hint in UI, next to version

* Fix lint
2016-04-22 10:25:00 +01:00
Paul Bellamy
3ec7e0227b Merge pull request #1362 from weaveworks/go1.6.2
Upgrade to go1.6.2
2016-04-22 10:19:54 +01:00
David Kaltschmidt
eda2a208c6 Sort controls by rank in the UI 2016-04-21 19:36:13 +02:00
David
3abd96f752 Merge pull request #1365 from weaveworks/add-download-report-button
Add a button to download the report as JSON
2016-04-21 19:17:22 +02:00
Tom Wilkie
8b06f6c0d8 Add rank field to controls. 2016-04-21 18:05:48 +01:00
Paul Bellamy
c4d4514278 Merge pull request #1359 from weaveworks/1121-reverse-resolution
Use reverse-resolved DNS info in the connections table.
2016-04-21 17:53:10 +01:00
Paul Bellamy
1b10a39313 add a button to download the report as JSON 2016-04-21 17:49:36 +01:00
David Kaltschmidt
62ed88cf16 Close details panel when node was removed via control 2016-04-21 18:34:51 +02:00
pidster
6b5e39ff02 Address feedback in PR. Move to images, etc.
Also fixes embarrassing compilation error; reminding me not to rewrite patches *after* testing, without re-testing.
2016-04-21 16:52:13 +01:00
Tom Wilkie
ed555b6780 Add 'closeDetails' field to control responses. 2016-04-21 16:40:21 +01:00
Tom Wilkie
65dbca997c Add control for removing stopped docker containers. 2016-04-21 16:24:41 +01:00
Tom Wilkie
fc46301c32 Include IP address in label. 2016-04-21 16:20:39 +01:00
David
7e9edb03a7 Merge pull request #1354 from weaveworks/asset-fingerprinting
Asset fingerprinting
2016-04-21 15:59:52 +02:00
David
e6c3bb1665 Merge pull request #1361 from weaveworks/1304-fix-node-positions
Extract only coordinates from layout runs
2016-04-21 15:59:30 +02:00
Tom Wilkie
66868eb946 Add test for rm'd containers 2016-04-21 13:51:20 +01:00
Tom Wilkie
99204e1ff7 Add k8s pod log control (#1298)
* Remove individually vendored k8s.io/kubernetes/pkg/<foo>

* Vendor the whole of vendor/k8s.io/kubernetes/pkg

* Add k8s pod log control

* Tag pods with host id and include them in the host topology as children.

* adding a basic test for kubernetes.Reporter.GetLogs
2016-04-21 13:48:50 +01:00
Tom Wilkie
cec750049f Immediately remove deleted containers from the UI. 2016-04-21 12:26:51 +01:00
Tom Wilkie
fb8704f82d Upgrade to go1.6.2 2016-04-21 10:04:08 +01:00
David Kaltschmidt
b1f8e89227 Add entry name to stylesheet
* fixes contrast mode
2016-04-21 09:35:14 +02:00
David Kaltschmidt
9cf3d671bb Extract only coordinates from layout runs
* keeps node metadata intact
* fix for issue introduced in 5cedfad

Fixes #1304
2016-04-21 09:18:46 +02:00
Tom Wilkie
0a51064713 Use reverse-resolved DNS info in the connections table. 2016-04-20 17:18:32 +01:00
Paul Bellamy
3c1b068633 Merge pull request #1357 from weaveworks/1312-arg-parsing
Move all the flag parsing to main.go; implement `scope help`
2016-04-20 17:03:13 +01:00
Paul Bellamy
f61e29e324 Merge pull request #1358 from weaveworks/1081-flaky
Add buffer to mockPublisher channel to prevent deadlock between Publish() and Stop()
2016-04-20 16:44:16 +01:00
Tom Wilkie
919d813b70 Add buffer to mockPublisher channel to prevent deadlock between Publish() and Stop() 2016-04-20 16:20:14 +01:00
Paul Bellamy
b85e287a22 Merge pull request #1327 from weaveworks/1213-group-summariser
Add explicit group node summariser instead of doing it in the other summaries
2016-04-20 16:11:56 +01:00