Commit Graph
98 Commits
Author SHA1 Message Date
Ilya DmitrichenkoandTom Wilkie 25685c55f9 Fix Docker for Mac check (#1551) 2016-06-04 08:04:08 +01:00
Alfonso AcostaandTom Wilkie a7544498cb Check HOME variable before using it (#1500) 2016-05-13 09:49:22 +01:00
Ilya DmitrichenkoandTom Wilkie 0bea9990cd Fix Docker for Mac (again!) (#1448)
* Make Scope work on Docker for Mac (#1414)

* Check if Docker for Mac is used and run app separately

* Improve `check_probe_only`

* Fix d4m detection

* Fix Docker for Mac test by checking if it is in use
2016-05-10 20:28:52 +02:00
Tom Wilkie 77be6863d4 Revert "Make Scope work on Docker for Mac" (#1439) 2016-05-06 13:28:51 +01:00
Ilya DmitrichenkoandTom Wilkie 3e7dd1abbf Make Scope work on Docker for Mac (#1414)
* Check if Docker for Mac is used and run app separately

* Improve `check_probe_only`

* Fix d4m detection
2016-05-05 18:15:58 +01:00
Tom Wilkie cb0901e8e1 Move all the flag parsing to main.go; implement scope help 2016-04-20 15:48:43 +01:00
Paul Bellamy 7632e0b3c5 Adding support for plugins, with basic example of iowait, and ebpf
Squash of:
* Include plugins in the report
* show plugin list in the UI
* moving metric and metadata templates into the probe reports
* update js for prime -> priority
* added retry to plugin handshake
* added iowait plugin
* review feedback
* plugin documentation
2016-04-12 17:22:14 +01:00
Tom Wilkie 425013bdd9 Update go-checkpoint library and add link to README. 2016-02-29 11:15:14 +00:00
Tom Wilkie 34ca87c98e Review feedback. 2016-02-04 15:48:17 +00:00
Tom Wilkie 2e9aa9314d Periodically check for newer versions of scope. 2016-02-04 15:22:01 +00:00
Tom Wilkie 667dd0f1de Rationalise version handling 2015-12-11 12:23:01 +00:00
Tom Wilkie 045a1feba0 Update the docker version we embed into the scope image to 1.6.2 in sync with weave 1.3 changes. 2015-11-30 09:38:42 +00:00
Tom Wilkie d779a4e5da Make sure scope can start after an upgrade. 2015-11-03 14:16:28 +00:00
Alfonso Acosta 543109a524 Make Docker version extraction more robust 2015-10-26 18:07:11 +00:00
Tom Wilkie 163af5e681 Review feedback 2015-10-19 14:33:42 +00:00
Tom Wilkie 7f21622d37 Introduce docker version check into scope script, error on <1.5.0 2015-10-19 14:33:41 +00:00
Paul Bellamy 745c94f07f Make getting the docker run command easier. 2015-10-19 12:24:10 +01:00
Tom Wilkie 88686b5c6c Review Feedback 2015-09-30 13:40:25 +00:00
Tom Wilkie 206a56b1ad Do all weave operations from within the container
Fixes #523
2015-09-30 11:54:38 +00:00
Peter Bourgon 36b743fe1f probe, app: reliable shutdown
- Restructure main funcs for clean defer-stack-unwinds
- Fix Docker container to handle signals properly
- Introduce runsvinit for container init process
- Integration test
2015-09-29 11:45:12 +02:00
Paul Bellamy 235cbd3a52 use weavescope image for all remote work, so they're labelled works.weave.role=system 2015-08-28 11:59:29 +01:00
Paul Bellamy 26eea6eab2 Works with boot2docker.
The DOCKER_BRIDGE_IP is set on the remote host, so it will be found
correctly on boot2docker.
2015-08-28 11:59:02 +01:00
Tom Wilkie fe809fd896 Update for new weave status interface; 'intelligently' enable by default. 2015-08-25 09:22:14 +00:00
Paul Bellamy 6860d02a1a Use port or dns container to check for weavedns
Due to: https://github.com/weaveworks/weave/pull/1319
2015-08-19 10:19:28 +01:00
Tom Wilkie 62a5fe364d Remove bash-ism 2015-08-17 14:54:16 +00:00
Alvaro SaurinandTom Wilkie c34c80e368 Use /bin/sh instead of /bin/bash so it can be used in boot2docker 2015-08-17 14:50:29 +00:00
Tom Wilkie 9edc58f8ef Merge pull request #350 from weaveworks/service-args
Add parameter shortcut for SAAS
2015-08-12 14:56:58 +01:00
Tom Wilkie 6f3828a431 Add parameter shortcut for saas 2015-08-12 12:04:06 +00:00
Tom Wilkie e2a4bc9796 Rm temporary containers. 2015-08-12 11:45:24 +00:00
Peter Bourgon fb7eed103e Merge pull request #320 from weaveworks/process-names-on-darwin
Naïve process walker for Darwin
2015-07-20 16:37:25 +01:00
Tom Wilkie 843ac4e8ee Detech WeaveDNS by an open port 53 on the docker bridge && the presence of the weave script. 2015-07-20 13:56:23 +00:00
Peter Bourgon b585a362ac Naïve process walker for Darwin
This fixes the regression where process names weren't appearing for
Darwin probes. Makes testing easier.

Also, changes the process walker to operate on value types. There's no
performance advantage to using reference types for something of this
size, and there appeared to be a data race in the Darwin port that
caused nodes to gain and lose process names over time.

Also, restructures how to enable docker scraping. Default false when run
manually, and enabled via --probe.docker true in the scope script.
2015-07-16 12:33:59 +02:00
Peter Bourgon c8079daf26 Improve scope script <--> weave interaction
- Use command_exists function from weave script
- Collapse boolean checks for DNS registration
2015-07-15 12:10:50 +02:00
Peter Bourgon 53e70b02f4 Don't fast-fail if weave isn't present 2015-07-15 11:57:48 +02:00
Peter Bourgon ac29fba7bc Don't fail if CACHE_DIR has a missing component
Also, don't invoke weave if it's not running.
2015-07-13 16:03:19 +02:00
Peter Bourgon c57a04e1dd Use weave add-dns instead of HTTP calls to DNS container 2015-07-13 12:47:21 +02:00
Peter Bourgon edee9b2434 weave expose prior to scope launch 2015-07-02 18:25:10 +01:00
Tom Wilkie eafa040a6d Fail quickly in the ./scope script. 2015-06-23 14:29:54 +00:00
Tom Wilkie 94a1b2a6b0 Use a bash command in a docker container to work out host IP addresses. 2015-06-08 16:29:34 +00:00
Tom Wilkie a69600831c Emit the urls at which the weave scope UI is reachable on scope launch. 2015-06-02 14:58:57 +00:00
Tom Wilkie b4ad86e2f5 Merge pull request #143 from tomwilkie/release
Plumbing for releases stolen straight from weave.
2015-06-01 16:48:54 +01:00
Tom Wilkie f673d05d3b Merge pull request #140 from tomwilkie/137-ip-addrs
Don't just advertise addresses on eth devices; use blacklist on device name.
2015-06-01 16:45:39 +01:00
Tom Wilkie 3d2521dc65 Don't just advertise addresses on eth devices; use hostname -I. 2015-06-01 15:35:42 +00:00
Tom Wilkie 2d430895e3 Plumbing for releases stolen straight from weave. 2015-06-01 15:17:32 +00:00
Tom Wilkie d9b54ba60b Yet More Plumbing for multi-host setup.
- Move peers from flags to args in the app
- Allow users to specify peers as IPs and hostname, both with and without ports
- Allow users to specify peers on ./scope launch, and plumb that through entrypoint.sh and run-app
- Improce ./scope usage text
- Add brief document explaining how to cluster Scope
2015-06-01 12:29:01 +00:00
Tom Wilkie 0c059b2f84 Don't do the hostproc dance, use --pid=host 2015-05-27 12:02:40 +00:00
Tom Wilkie 2c9a2da14f Don't set the hostname in the scope container when running with weavedns. 2015-05-22 17:11:06 +00:00
Tom Wilkie 84d724f645 Move container build files into their own dir and introduce the scope script. 2015-05-19 10:05:40 +00:00