Paul Bellamy
92ec7d9397
Move probe main.go to prog/probe/, break out a probe struct with appropriate responsibilities.
...
Also adds test for probe 'engine'
2015-11-09 16:25:28 +00:00
Tom Wilkie
8dbc586866
Merge pull request #628 from weaveworks/latest-map
...
Add 'latest' CRDT, make UI update quicker.
2015-11-09 16:10:28 +00:00
Alvaro
4f21919858
Merge pull request #639 from weaveworks/scope-504-2
...
Resolve to a group of names
2015-11-09 15:29:28 +01:00
Alvaro Saurin
bc972a52ab
Resolve to a group of names (instead of taking only the first one)
2015-11-09 13:45:02 +01:00
Tom Wilkie
5e2c165fd8
Review feedback
2015-11-09 11:38:15 +00:00
Tom Wilkie
43d0ce986f
Add 'latest' CRDT; use it to store container state.
...
Also use same technique to merge the controls, returning the latest
set of controls instead of the union.
2015-11-06 18:26:38 +00:00
Tom Wilkie
8f957c4f13
Add docker lifecycle controls, containers in states other that running, and a filter for those containers.
...
Also add integration test for container controls.
2015-11-06 17:39:54 +00:00
Tom Wilkie
76d34330a9
Add Control plumbing.
2015-11-06 17:39:48 +00:00
Tom Wilkie
641c2a1834
Merge remote-tracking branch 'origin/0.9'
2015-10-30 09:49:05 +00:00
Tom Wilkie
c5c115bb0f
Make channel so stop doesn't fail; also, test stop.
2015-10-28 15:25:38 +00:00
Tom Wilkie
244e2f4b4a
gofmt + build
2015-10-27 14:48:43 +00:00
Tom Wilkie
ec4425fb80
Use Node.Sets for Host Local Networks.
2015-10-27 14:35:07 +00:00
Tom Wilkie
6e9ad995b0
Use Node.Sets for Docker/Weave IPs
2015-10-27 14:12:35 +00:00
Tom Wilkie
6a4c997048
Merge pull request #526 from weaveworks/fix-natmapper-conntracker
...
Refactor probe/endpoint for export and dependency cleanliness
2015-10-27 14:11:55 +00:00
Tom Wilkie
07af26e05b
Review feedback
2015-10-27 11:39:38 +00:00
Paul Bellamy
650f015421
Review feedback
2015-10-27 11:36:14 +00:00
Tom Wilkie
a3c53aadf5
No more nil flow workers
2015-10-27 10:53:23 +00:00
Paul Bellamy
e41352a220
pass the hostname through to xfer.HttpPublisher, so we can verify ssl certs
2015-10-27 10:51:41 +00:00
Peter Bourgon
cb40ad3a90
Continued un-exporting of symbols; renames
...
- Unexport consts, types, vars, etc.
- Rename Conntracker (interface) to FlowWalker, to match its definition.
- Rename conntracker (type) to conntrackWalker, to match the interface.
- Move conntrack_test.go to conntrack_internal_test.go and package endpoint
2015-10-27 10:40:09 +00:00
Peter Bourgon
6ae5077515
Un-export NATMapper
...
Lots of TODOs to clean up...
2015-10-27 10:38:22 +00:00
Peter Bourgon
36ce1089f4
Don't export reverseResolver
...
It's only used within package endpoint, so it shouldn't be exported.
That means resolver_test becomes resolver_internal_test, and with the
previous change to the fixture, we can avoid the dot-import.
Also, update method names to reflect it's an unexported type.
2015-10-27 10:38:19 +00:00
Peter Bourgon
65a7547415
Intermediate stage fix
2015-10-27 10:36:53 +00:00
Peter Bourgon
32a57e63db
probe/endpoint: NATMapper missed an edge case
...
NATMapper can be created with a nil Conntracker if
ConntrackerModulePresent is false, e.g. on Darwin.
Check for that in ApplyNAT.
2015-10-27 10:36:52 +00:00
Tom Wilkie
492ca1692d
Review feedback
2015-10-22 09:01:53 +00:00
Tom Wilkie
0cd3de5c7f
Retry conntrack, after a short delay, in a loop.
2015-10-21 15:17:41 +00:00
Tom Wilkie
1e22629448
Merge pull request #577 from weaveworks/520-edge-bug
...
Include host scope for container joins based on IP.
2015-10-21 11:59:31 +01:00
Tom Wilkie
cd97708af0
Review feedback
2015-10-21 10:04:27 +00:00
Tom Wilkie
811bde4d4a
Include host scope for contianer joins based on IP.
2015-10-20 14:50:40 +00:00
Paul Bellamy
d380df5dd6
Merge pull request #575 from weaveworks/559-probe-ssl-support
...
Add ssl support for the probe
2015-10-20 14:57:39 +01:00
Alvaro Saurin
a1f467f20f
Sort DNS answers before returning a name with Get()
2015-10-20 09:23:19 +02:00
Paul Bellamy
986abd24cd
Add ssl support for the probe
...
Hosts ending in :443 are treated as SSL. There is also a
--probe.insecure flag, for using it in development environments where
SSL cannot be verified.
2015-10-19 17:32:32 +01:00
Paul Bellamy
6c336bdfc0
Merge pull request #547 from weaveworks/arm-build
...
Make Scope build on arm
2015-10-19 11:45:31 +01:00
Tom Wilkie
eaf52f4769
Review feedback
2015-10-10 07:47:34 +00:00
Tom Wilkie
aab15cd5f5
Make scope build on arm.
2015-10-09 14:40:32 +00:00
Tobias Bradtke
81d927fd35
Change type
...
Fixes compile error for me
2015-10-09 14:11:12 +00:00
Tom Wilkie
de6742db11
Add containers by hostname view.
2015-10-09 10:52:12 +00:00
Paul Bellamy
6ad182a144
Merge pull request #441 from weaveworks/kubernetes
...
Basic Kubernetes Integration
2015-10-06 14:49:55 +01:00
Paul Bellamy
be1d1d52d0
Basic Kubernetes integration
...
* Added helper for installing scope on gcloud
* Added topologies Pods and Pods-by-Service
* Uses k8s.io/kubernetes/pkg/client/cache for the client
* Filter kube-system nodes by default
* Only show the k8s topologies if we've received a non-empty k8s report
2015-10-06 12:55:51 +01:00
Tom Wilkie
d3aa975eb9
In containers view, show short lived connections to/from the internet by including port mappings in the join.
2015-10-01 16:31:38 +00:00
Peter Bourgon
8a2fa22858
Merge pull request #529 from weaveworks/release-0.8.0
...
Release 0.8.0
2015-10-01 18:14:36 +02:00
Peter Bourgon
e14e2a878e
Make report swapping less fragile
2015-10-01 14:42:01 +02:00
Tom Wilkie
092167f5de
Don't allow lagging report generation to prevent report publication.
2015-10-01 11:13:50 +00:00
Tom Wilkie
68e3bdac44
Poll DNS every 10s
2015-09-30 11:55:53 +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
Peter Bourgon
8602132ab6
Move concurrency from resolve to HTTP GET
...
- Process DNS resolution serially
- Process up to 10 HTTP GET (for app ID) concurrently
More than 10 concurrent GET requests will block on the semaphore. This
will cause the staticResolver.resolve method to block, which is probably
fine: it will just delay the next resolve loop, currently at 1m
intervals.
To make this a little bit more robust, I've also added a fastClient for
app ID resolution, with a timeout (total, including connect, request,
and response) of 5s.
2015-09-24 16:56:37 +02:00
Peter Bourgon
eccc74aafe
Make the resolver concurrent
2015-09-24 16:11:55 +02:00
Peter Bourgon
c818f08c06
Refactor MultiPublisher
...
- Set instead of Add, to allow replacement of endpoints
- Break out individual Publishers to their own files and tests
2015-09-24 16:11:55 +02:00
Peter Bourgon
64fdf6a780
common/sanitize + relevant updates
2015-09-24 16:11:54 +02:00
Tom Wilkie
92b5b639dd
Extend docker module testing.
2015-09-24 05:30:40 +00:00
Tom Wilkie
487a97e9f2
Merge pull request #516 from weaveworks/extract-capture
...
probe/sniff: move to experimental
2015-09-24 12:25:38 +08:00