Commit Graph

59 Commits

Author SHA1 Message Date
Tom Wilkie
6e7a22ecae Update example app to include a loadbalancer. 2015-09-04 13:07:29 +00:00
Tom Wilkie
57f7b4f2e6 Rename NodeMetadata -> Node 2015-09-03 16:18:54 +00:00
Tom Wilkie
144a798602 Review Feedback 2015-09-02 14:32:47 +00:00
Tom Wilkie
afc2788777 Move EdgeMetadata into the NodeMetadata struct. 2015-09-02 14:32:44 +00:00
Tom Wilkie
217775654a Merge pull request #411 from weaveworks/357-adjacencies-to-nodemetadata
Move Adjacency info inside the NodeMetadata struct
2015-09-01 12:18:19 +01:00
Tom Wilkie
c92ee90716 Use alpine:latest instead of gliderlabs/alpine 2015-09-01 11:15:14 +00:00
Tom Wilkie
899e2d7a5c Review feedback 2015-09-01 11:01:25 +00:00
Tom Wilkie
1f6b3d4a45 Move Adjacency info inside the NodeMetadata struct; move pseudo node generation to the probes. 2015-08-28 15:20:27 +00:00
Tom Wilkie
0cb5502c61 Plumb in socket syscall. 2015-08-21 10:46:30 +00:00
Tom Wilkie
27c42b0191 Lookup local addr of fds we detect via ftrace. 2015-08-20 17:11:19 +00:00
Tom Wilkie
66ffc2397b First working ftrace prototype. 2015-08-20 13:18:50 +00:00
Peter Bourgon
43bfecbba4 Add X-Scope-Probe-ID header to POSTs 2015-08-13 13:01:58 +02:00
Peter Bourgon
7d51f173ea Probes POST to apps
- App takes POST report on /api/report
- Probe publishes to configured target(s)
- Name resolution happens on probe-side
- There's no longer an xfer.ProbePort
- xfer.Collector responsibility is reduced
- Fixes to remaining experimental components.
- rm experimental/bridge: it's not being used, and by changing the
  app/probe comm model, it would require a complete refactor anyway. We
  can easily rebuild it when we need to. It will even be much simpler.
- rm experimental/graphviz: it's broken for some time anyway, and we
  don't really need to play around with it as a rendering option
  anymore.
- rm experimental/oneshot: we never use this anymore.
2015-08-07 15:45:15 +02:00
Peter Bourgon
b9afa67ad6 gopacket-based traffic sniffing 2015-08-03 10:55:59 +02:00
Peter Bourgon
3dd59c8b9b Fixes to NodeMetadata
NewNodeMetadata -> MakeNodeMetadata. It doesn't return a pointer, so
Make is more idiomatic.

Invoke MakeNodeMetadata when necessary. The zero value for a
NodeMetadata is no longer valid.

Split MakeNodeMetadata to two constructors. MakeNodeMetadata when you
don't have anything to prepopulate; MakeNodeMetadataWith when you do.

Also, a fix to the tests in app. We unmarshal a RenderableNode struct,
which has a JSON-ignored NodeMetadata field. The zero value is invalid,
so we need to fix that before performing comparisons.
2015-07-30 17:20:44 +02:00
Peter Bourgon
fc308d93b8 Normalize var names; use Addr/Port key constants 2015-07-30 16:36:27 +02:00
Tom Wilkie
05c3b87aba Build scope and weave master for demos. 2015-07-22 12:20:25 +00:00
Tom Wilkie
4305b917a7 Script to spin up a demo scope cluster. 2015-07-20 13:38:47 +00:00
Tom Wilkie
f85195308c report.Metadata -> map[string]string 2015-07-16 12:06:05 +00:00
Tom Wilkie
c2065836e2 Make NodeMetadata a struct, move existing map[string]string to NodeMetadata.Metadata 2015-07-15 10:06:36 +00:00
Paul Bellamy
95f941ff2d const-izing NodeMetadata fields 2015-07-02 14:51:12 +01:00
Peter Bourgon
90a0286909 Refactor tests to have appropriate packages
By default, tests should be in package pkg_test. If they need to test
package internals, they can be in package pkg, but then should carry a
suffix of foo_internal_test.go.

This changeset enforces that idiom across the codebase, and adds a check
to the linter to make sure it remains.

Also, some fixes to comments.
2015-06-29 18:06:44 +02:00
Tom Wilkie
bd4556f6c3 Add timeout on example client. 2015-06-24 11:07:35 +00:00
Tom Wilkie
5e4cfc57e5 Use a repo name on example images. 2015-06-24 10:34:20 +00:00
Tom Wilkie
49dae07cca Make render module produce The Internet pseudo node. 2015-06-19 11:09:52 +00:00
Tom Wilkie
f32d2b5a5e Remove report squash logic. 2015-06-18 17:20:20 +00:00
Tom Wilkie
75b5e07482 Add test for ContainerRenderer and make tests in /app pass. 2015-06-17 17:23:26 +00:00
Tom Wilkie
a759db8931 Rename Map -> LeafMap, introduce Map (with tests) 2015-06-17 17:23:19 +00:00
Tom Wilkie
2a4a33f30a Move RenderableNode and DetailedNode into render/ 2015-06-16 15:37:08 +00:00
Tom Wilkie
ae9ea5c97f Move mapping functions and main render function in render package. 2015-06-16 14:23:56 +00:00
Tom Wilkie
894439a449 Prevent multiple connections for the same app. 2015-06-11 10:02:54 +00:00
David Kaltschmidt
d9fbaf348c example report based on TNS tutorial for fixprobe
see
http://thenewstack.io/how-to-detect-map-and-monitor-docker-containers-with-weave-scope-from-weaveworks/
2015-06-10 15:44:11 +02:00
Tom Wilkie
e8eb24d65c Rejigger example app. 2015-06-10 10:41:17 +00:00
Tom Wilkie
719f933c21 Refactor MakeAdjacencyID & ParseAdjacencyID; add ParseNodeID (which separates scope and the rest of node id) 2015-06-10 09:21:45 +00:00
Peter Bourgon
aa0a754363 Improve test coverage; SquashRemote -> Squash
Also, remove some dead code.
2015-06-09 15:54:06 +02:00
Peter Bourgon
d438261742 HostMetadata becomes Host Topology
- All HostMetadata information becomes NodeMetadata
- Significant change to mechanics, but same net effect
- LocalNets becomes "local_networks", space-separated list of CIDRs
- Load becomes simple single string
- Use MakeHostNodeID for indexing into Host topology
- (That changes the app /origin/{id} handler; will be removed later)
2015-06-09 15:38:08 +02:00
Peter Bourgon
1e0b83eb6d Merge branch report-fields (#190) 2015-06-09 14:25:54 +02:00
Peter Bourgon
7c56939e22 Update IDList
- MakeIDList rather than NewIDList
- Iterate on test coverage
- Drop Copy method, for now
2015-06-08 19:52:26 +02:00
Peter Bourgon
4832ee76f3 Add the various ID constructors
- Use constructors instead of ScopeDelim everywhere
- Use constructors instead of IDDelim everywhere
- IDDelim is renamed EdgeDelim, for clarity
- Partial import of the new test fixtures, to be completed later
2015-06-08 17:53:01 +02:00
Tom Wilkie
ceb61d170d Add readme to experimental directory. 2015-06-05 16:21:56 +00:00
Tom Wilkie
03bdff8694 Add shout proxy to example app. 2015-06-05 14:56:56 +00:00
Peter Bourgon
754eac3152 Rename NewReport -> MakeReport. 2015-06-05 13:55:40 +00:00
Tom Wilkie
b031835148 Fixup experimental, add a makefile and add it to circle to stop experimental getting broken again. 2015-06-05 13:44:59 +00:00
Tom Wilkie
1fbc48f855 Remove sleep 1 from qotd server. 2015-05-28 09:41:51 +00:00
Tom Wilkie
f166cb6359 Scale up pyapp in example 2015-05-27 16:26:52 +00:00
Tom Wilkie
5065223f68 Use sessions for the pyapp -> goapp link too. 2015-05-27 16:06:04 +00:00
Tom Wilkie
649d6b9793 Python requests only does keep alive within a session... 2015-05-27 15:42:57 +00:00
Tom Wilkie
8bccec8a78 Replace curl with little python script 2015-05-27 14:51:37 +00:00
Tom Wilkie
8ca5fd6140 Add 'architecture' diagram to example add 2015-05-27 12:07:47 +00:00
Tom Wilkie
e8da5903f1 Small enhancements to the example app
- Explicity add go app to the example container, so it fails if you haven't built it.
- spin up 2 goapps and 3 elastic searches
2015-05-27 10:20:07 +00:00