5943 Commits
Author SHA1 Message Date
Roland Schilter 8067ac93ae Bump client version in package.json 2017-06-13 16:40:45 +02:00
Roland Schilter 11355bbf4b Elide token-only credentials in cli arguments
Follow-up of #2568
2017-06-13 13:14:09 +02:00
Alfonso Acosta 16679849dc Release 1.5.0 2017-06-13 08:33:03 +00:00
Mike Lang f403d01885 Forgot to include daemonsets in renderKubernetesTopologies
Yay, needing to remember 10 different obscure places to add a new topology every time.
2017-06-12 10:13:54 -07:00
Matthias RadestockandGitHub 45aee2b2c4 Merge pull request #2581 from weaveworks/trim-endpoint-latest
drop addr and port from Endpoint.Latest map
2017-06-12 10:30:50 +01:00
Filip BarlandGitHub b6dfe25499 Time travel control (#2524)
* Hacky working prototype.

* Operate with time.Duration offset instead of fixed timestamp.

* Polished the backend code.

* Made a nicer UI component.

* Small refactorings of the websockets code.

* Fixed the backend tests.

* Better websocketing and smoother transitions

* Small styling refactoring.

* Detecting empty topologies.

* Improved error messaging.

* Addressed some of David's comments.

* Moved nodesDeltaBuffer to a global state to fix the paused status rendering bug.

* Small styling changes

* Changed the websocket global state variables a bit.

* Polishing & refactoring.

* More polishing.

* Final refactoring.

* Addressed a couple of bugs.

* Hidden the timeline control behind Cloud context and a feature flag.

* Addressed most of @davkal's comments.

* Added mixpanel tracking.
2017-06-12 11:22:17 +02:00
jjqq 8fa771e7d4 fix error when docker DAEMON is running with user namespace enabled.
1:mkdir: can't create directory '/var/run/scope/': Permission denied
2017-06-12 17:55:58 +09:00
Matthias Radestock afbc1decab drop addr and port from Endpoint.Latest map
the information is constant and already present in the id, so we can
extract it from there.

That reduces the report size and improves report encoding/decoding
performance. It should reduce memory usage too and improve report
merging performance too.

NB: Probes with this change are incompatible with old apps.
2017-06-10 19:19:56 +01:00
Alfonso AcostaandGitHub 70af2aac84 Merge pull request #2579 from weaveworks/2578-retarget-client
re-target app clients when name resolution changes
2017-06-09 15:05:39 +02:00
Matthias Radestock c8f97878d2 re-target app clients when name resolution changes
Fixes #2578.
2017-06-09 12:30:26 +01:00
Matthias Radestock fb735b65c4 cosmetic: correct comment 2017-06-09 11:31:20 +01:00
Matthias RadestockandGitHub 32735d868e Merge pull request #2572 from weaveworks/observed-gen-is-number
correct type for "Observed Gen."
2017-06-08 20:47:29 +01:00
Alfonso AcostaandGitHub 6913d49b00 Merge pull request #2575 from weaveworks/app-capabilites
Add app capabilities to /api endpoint
2017-06-08 18:40:34 +02:00
Roland SchilterandGitHub 5ef7bd151a es6ify server.js and include in eslint (#2560) 2017-06-08 18:39:53 +02:00
Roland SchilterandGitHub b78745f615 Execute tests in the prog/ directory (#2567)
Also fixed prog/main_test.go (which has never been part of the test suite so far)
2017-06-08 15:41:53 +02:00
Alfonso Acosta 7e7386a3fe Review feedback 2017-06-08 13:35:03 +00:00
Alfonso Acosta 6be7aa8be2 Add app capabilities to /api endpoint 2017-06-08 11:02:25 +00:00
Matthias Radestock d0b40ee4b9 correct type for "Observed Gen."
It's a number. This enables numeric sorting of Observed Gen in the
table mode of the Deployment and Replicaset views.
2017-06-08 04:27:10 +01:00
Roland SchilterandGitHub 2e4f4a3771 Elide url passwords in cli arguments (#2568)
Closes #2365
2017-06-07 10:18:18 +01:00
Roland SchilterandGitHub 56cb02675b Back off upon errored kubernetes api requests (#2562)
closes #1009
2017-06-06 16:19:41 +02:00
Roland SchilterandGitHub f427077e85 Merge pull request #2563 from weaveworks/makefile-find-wildcard
Fix incomplete dependencies for `make scope/prog`
2017-06-05 22:11:46 +01:00
Roland Schilter 1c4f0036cf Fix incomplete dependencies for make scope/prog
It seems that on my OS the passed param to find gets expanded early and
thus the command

    $(shell find ./ -path ./vendor -prune -o -type f -name *.go)

results in

        ./test.go ./vendor

instead of including all the go files from subdirs. Quoting helps.
2017-06-05 15:56:16 +01:00
Roland SchilterandGitHub 3933c36f8f Merge pull request #2555 from weaveworks/bump-scopeui-version
bump package.json version to current scope version
2017-06-05 14:08:41 +02:00
Matthias RadestockandGitHub d1489d4d85 Merge pull request #2561 from weaveworks/parallel-reduce
execute reducer branches in parallel
2017-06-05 12:50:20 +01:00
Bryan Boreham 1898b67e1f Use 127.0.0.1 instead of localhost in case that name resolves to something else 2017-06-05 10:31:27 +00:00
Matthias Radestock 912c684e65 optimise memoisation for parallel execution
don't start the same piece of work twice
2017-06-05 10:30:11 +01:00
Matthias Radestock 91d3497f7d parallelise 'reduce' 2017-06-05 08:44:17 +01:00
Matthias Radestock 6eaffb44e0 fix bug: handle short-lived ebpf-tracked connections again
This got broken in #2559.

The problem here is similar to #2551.
2017-06-04 18:42:54 +01:00
Matthias RadestockandGitHub f574162f64 Merge pull request #2559 from weaveworks/simplify-connection-join
simplify connection join
2017-06-04 16:30:09 +01:00
Matthias Radestock 30c38a958f remove blatant falsehoods from comments 2017-06-04 16:23:03 +01:00
Matthias Radestock ebcf9dcf10 refactor: rename ShortLivedConnectionJoin to ConnectionJoin
since it's dealing with *all* connections, not just short-lived ones.
2017-06-04 16:10:21 +01:00
Matthias Radestock 9bc7b30f0f extract and expand endpoint procspied filter
The filter needs to exclude both procspied and eBPF-tracked endpoints,
since both will be picked up by the process topology.
2017-06-04 16:10:21 +01:00
Matthias Radestock 707add13a3 refactor: simplify some filters 2017-06-04 16:10:21 +01:00
Matthias Radestock ee0736df69 refactor: extract constant mapEndpoint2IP 2017-06-04 16:10:21 +01:00
Matthias Radestock 6697f4a897 refactor: declosure ShortLivedConnectionJoin 2017-06-04 16:10:21 +01:00
Matthias RadestockandGitHub b29602f33a Merge pull request #2557 from weaveworks/dont-read-all-of-proc
don't read all of /proc when probe.proc.spy=false
2017-06-04 14:48:54 +01:00
Alfonso AcostaandGitHub e4f5537529 Merge pull request #2535 from weaveworks/2441-enable-ebpf-by-default
Enable eBPF tracking by default
2017-06-04 15:46:07 +02:00
Matthias Radestock ff4a4c08ce refactor: remove pointless optimisation 2017-06-04 10:36:55 +01:00
Matthias Radestock 59f777a066 don't read all of /proc when probe.proc.spy=false
Previously we were doing the reading even though we weren't looking at
the result.
2017-06-02 14:01:25 +01:00
Roland Schilter a1e58c13e5 bump package.json version to current scope version 2017-06-01 18:24:58 +02:00
Alfonso Acosta b2e6b97aa8 Fix ebpf-connection checking 2017-05-31 15:10:52 +00:00
Alfonso Acosta 71e035665b Adjust integration tests 2017-05-31 10:04:52 +00:00
Alfonso Acosta 7ca8749b18 Enable eBPF tracking by default 2017-05-31 10:04:52 +00:00
Matthias RadestockandGitHub 06bb5157f8 Merge pull request #2548 from weaveworks/nodeset-unsorted-foreach
optimise: don't sort in NodeSet.ForEach
2017-05-30 14:54:13 +01:00
Matthias Radestock 6679c42c0e optimise: don't sort in NodeSet.ForEach
It's unnecessary, and none of the other ps.Map derived structures do
it.
2017-05-30 13:42:18 +01:00
Matthias RadestockandGitHub 2c5709b5ae Merge pull request #2547 from weaveworks/do-not-encode-empty-maps
encode empty ps.Maps as nil
2017-05-29 18:31:08 +01:00
Matthias Radestock 94a11ff2e8 encode empty ps.Maps as nil
every little helps
2017-05-29 17:50:55 +01:00
Matthias RadestockandGitHub e2bccd1d64 Merge pull request #2546 from weaveworks/use_map_helpers
Use map helpers
2017-05-29 16:49:30 +01:00
Matthias Radestock 29f2af11d9 introduce mapKeys helper 2017-05-29 14:08:26 +01:00
Matthias Radestock 87d91c55d9 use mapToString where possible 2017-05-29 14:08:26 +01:00