Commit Graph

3587 Commits

Author SHA1 Message Date
Filip Barl
a94006491e Fix help panel fields max height. 2017-03-22 11:53:43 +01:00
Filip Barl
b52e0ee1e0 Merge pull request #2368 from weaveworks/2090-yarn
Use yarn package manager
2017-03-22 11:46:07 +01:00
Alfonso Acosta
f3a9b61cd0 Merge pull request #2366 from kinvolk/schu/ebpf-stop-tracker
endpoint/ebpf: implement stop
2017-03-22 10:17:55 +01:00
Michael Schubert
b49d2e6f9d vendor: update github.com/weaveworks/tcptracer-bpf 2017-03-22 10:07:55 +01:00
jpellizzari
56a4b32d97 Added yarn.lock; changed Docker file to use yarn 2017-03-21 13:51:26 -07:00
jpellizzari
9dfcd213c3 Replaced timely dependency 2017-03-21 12:26:52 -07:00
Alfonso Acosta
4aeeeb80c6 Merge pull request #2335 from weaveworks/2191-improve-weave-net-errors
Improve error reporting when invoking weave script
2017-03-21 17:21:31 +01:00
Alfonso Acosta
3431d64f77 Adapt middleware logger to upstream changes 2017-03-21 15:20:17 +00:00
Michael Schubert
cd25b8b935 endpoint/ebpf: implement stop
Since d60874aca8 `connectionTracker` can
fallback when the `EbpfTracker` died. Hence we only have to stop the
`tracer` in `stop()`.

This commit is also a fixup for d60874aca8
where we do a gentle fallback but never actually stop the tracer to stop
polling.
2017-03-21 14:42:34 +01:00
Alfonso Acosta
2a61656b03 Merge pull request #2346 from kinvolk/alban/integration-test-debug1
integration tests: list containers for debugging
2017-03-21 12:49:37 +01:00
Alfonso Acosta
482a41f88e Bump github.com/weaveworks/common 2017-03-21 11:49:02 +00:00
Bryan Boreham
13fc9f7a6b Merge pull request #2351 from weaveworks/remove-LatestMap
Remove LatestMap, to reduce memory allocation
2017-03-21 10:56:03 +00:00
Alfonso Acosta
d64d66efb8 Merge pull request #2336 from kinvolk/schu/timestamp-fallback
Fallback to proc when ebpf timestamps are wrong
2017-03-21 10:35:22 +01:00
Jordan Pellizzari
12f4869780 Merge pull request #2358 from weaveworks/2357-docker-mac
Changed --dry-run command to execute after OSX setup
2017-03-20 18:28:56 -07:00
jpellizzari
95c2405b30 Changed --dry-run command to execute after OSX setup 2017-03-20 17:44:38 -07:00
Bryan Boreham
de97a72661 Remove indirection via LatestMap
Structs like StringLatestMap now use ps.Map directly, which saves
a memory allocation for LatestEntry.Value to point to.
The values in the ps.Map are now pointers, which saves a memory
allocation indirecting a value type to an interface{}
2017-03-20 11:51:04 +00:00
Bryan Boreham
970ab66ea0 Extract map helper functions 2017-03-20 11:50:19 +00:00
Jordan Pellizzari
923dfd385f Merge pull request #2342 from weaveworks/2341-bidrectional-bug
Fix for inaccurate bidrectional edges on edge hover
2017-03-19 18:03:45 -07:00
Jordan Pellizzari
c7f6a07838 Changed client tests to use EDGE_ID_SEPARATOR constant 2017-03-19 17:30:26 -07:00
Mike Lang
286fe6b0be Merge pull request #2348 from weaveworks/mike/revert-k8s-filters
Revert "Merge pull request #2285 from weaveworks/mike/k8s-ns-in-container-view"
2017-03-17 14:29:37 -07:00
Mike Lang
d55c528fe2 Revert "Merge pull request #2285 from weaveworks/mike/k8s-ns-in-container-view"
This reverts commit 76ddc75fb8, reversing
changes made to 3ade2933eb.

We are rolling this back for now because it's causing a bug where sub-topologies
would have ~3000 repeated cases of the k8s filters, causing performance issues clientside.
2017-03-17 14:00:05 -07:00
jpellizzari
451f6b29de Changed edge ID separator 2017-03-17 10:55:32 -07:00
Jordan Pellizzari
93e76a94c1 Fix for inaccurate bidrectional edges on edge hover 2017-03-17 10:55:32 -07:00
Michael Schubert
5572895a2b ebpf_test: tracker set to dead after out of order events 2017-03-17 16:50:25 +01:00
Alban Crequy
904da40fad integration tests: list containers & endpoints for debugging
And when endpoints_have_ebpf() fails to find all endpoints with eBPF,
print an example of endpoint.
2017-03-17 16:50:24 +01:00
Michael Schubert
5262e0765d reader_linux: only access latestBuf when set
.. and avoid nil pointer dereference. It can happen that
`getWalkedProcPid` is called before the first `performWalk` finished.
2017-03-17 14:43:31 +01:00
Michael Schubert
d60874aca8 Fallback to proc when ebpf timestamps are wrong 2017-03-17 14:43:31 +01:00
Alfonso Acosta
ae58cd7710 Fix stderr obtention
* The Stderr pipe should be read before waiting
* The Stderr pipe should not be used with Run/Output. See https://golang.org/pkg/os/exec/#Cmd.StderrPipe:

  Wait will close the pipe after seeing the command exit, so most callers need
  not close the pipe themselves; however, an implication is that it is incorrect
  to call Wait before all reads from the pipe have completed. For the same
  reason, it is incorrect to use Run when using StderrPipe.
2017-03-17 13:20:06 +00:00
Adam Harrison
d5b97f925d Merge pull request #2344 from weaveworks/fix-dynamodb-metric-label
Correct dynamoDB metric label
2017-03-17 06:09:11 -07:00
Adam Harrison
83c073fad0 Correct dynamoDB metric label
Discovered whilst attempting to resolve github.com/weaveworks/service/issues/1157
2017-03-17 12:09:40 +00:00
Jordan Pellizzari
3e2144544b Merge pull request #2340 from weaveworks/2237-scope-urls
Fixed url state copy/paste bug
2017-03-16 15:46:06 -07:00
jpellizzari
5da40d24c3 Fixed url state copy/paste bug 2017-03-16 15:02:06 -07:00
Mike Lang
76ddc75fb8 Merge pull request #2285 from weaveworks/mike/k8s-ns-in-container-view
When k8s present, allow filtering of containers by namespace
2017-03-16 14:56:10 -07:00
Mike Lang
b01e890475 When k8s present, allow filtering of containers by namespace
To facilitate this, we replace the existing functionality of updateFilters which
sets k8s topologies to have the filters [namespace, managed], to instead append the namespace filter
to any existing. This lets it apply to both k8s and container topologies without overwriting existing
container filters. We instead set the managed filter in the static definition.

This however has the side effect that the ordering of the namespace filter and the managed filter
in k8s topologies has been reversed, so it reads:
	Show Unmanaged | Hide Unmanaged
	foo | bar | default | baz | All Namespaces
instead of:
	foo | bar | default | baz | All Namespaces
	Show Unmanaged | Hide Unmanaged
2017-03-16 14:21:11 -07:00
Jordan Pellizzari
3ade2933eb Merge pull request #2339 from weaveworks/react-version
Bump react version
2017-03-16 11:29:08 -07:00
jpellizzari
fd0a19fdda Bumped react version 2017-03-16 10:21:58 -07:00
Alfonso Acosta
31def70fc9 Improve error reporting when invoking weave script 2017-03-15 10:45:43 +00:00
Bryan Boreham
2fe3216e0a Merge pull request #2331 from weaveworks/decode-byte-slice
Decode via byte slice for memcache and file read
2017-03-14 15:41:45 +00:00
Bryan Boreham
b085c80ef3 Decode via byte slice for memcache and file read
This is more efficient, since the decoder can read field names in-place.
It also appears to be absolutely faster.
2017-03-14 14:54:17 +00:00
Bryan Boreham
07c8265c6b Update ugorji/co/codec to latest commit 708a42d246822952f38190a8d8c4e6b16a0e600c 2017-03-14 14:54:17 +00:00
Alfonso Acosta
a12ccf65d6 Merge pull request #2327 from kinvolk/schu/ebpf-proc-fallback
eBPF proc fallback
2017-03-14 07:40:31 -07:00
Michael Schubert
21047dc77f Add 313_container_to_container_edge_with_ebpf_proc_fallback_test.sh 2017-03-14 13:59:09 +01:00
Michael Schubert
22ae6c45a0 Implement ebpf proc fallback 2017-03-14 13:59:09 +01:00
Michael Schubert
5f2ba891a4 endpoint/reporter: only stop scanner if not nil 2017-03-14 11:56:04 +01:00
Michael Schubert
ce904fc56c Remove redundant arg from newEbpfTracker 2017-03-14 11:56:04 +01:00
Alfonso Acosta
250718d693 Merge pull request #2326 from kinvolk/schu/scope-dry-run
scope: use same Docker args for early dry run
2017-03-14 03:53:11 -07:00
Michael Schubert
5f85256055 scope: use same Docker args for early dry run
`launch` first does a `scope --dry-run` to parse and validate Scope
cmdline arguments before starting the main Scope container and
processes. Use the same Docker args for the dry run to make sure the
container has the same privileges and mount points. Otherwise valid
`$WEAVESCOPE_DOCKER_ARGS` might fail here.
2017-03-14 09:51:11 +01:00
jpellizzari
f975c12cf9 Change to re-fetch topologies on instance switch 2017-03-13 15:48:51 -07:00
Jordan Pellizzari
8dea285b6c Merge pull request #2317 from weaveworks/875-edge-arrows
Add edge arrows
2017-03-13 10:52:44 -07:00
jpellizzari
9b648834ee removed old marker code 2017-03-13 09:03:50 -07:00