Adam Harrison
915638d17a
Address linter failures
2016-11-14 15:13:19 +00:00
Marc CARRE
b03b3fccc7
Fixes 2537: status now prints 'failed to check latest version' when the checkpoint API is not available (+test).
2016-11-09 17:46:52 +00:00
Bryan Boreham
eb60f68df2
Report metrics on all connection states
2016-11-02 09:51:13 +00:00
Bryan Boreham
2b4da35b1c
Remove 'total' DNS entries; let the caller add them up
2016-11-01 18:03:35 +00:00
Bryan Boreham
86d68c9875
Move total IPs in range from a state to a separate metric
2016-11-01 18:03:35 +00:00
Bryan Boreham
cfff8ee8be
Merge pull request #2568 from weaveworks/rename-conn-term-prom-metric
...
Rename weave_connection_termination_count metric
2016-11-01 18:02:55 +00:00
Martynas Pumputis
ede70a78d6
Rename weave_connection_termination_count metric
...
To make it follow the Prometheus naming conventions:
https://prometheus.io/docs/practices/naming/
2016-10-31 13:23:12 +00:00
Bryan Boreham
3c7b244f18
Change image layering - plugin builds on weaver & weaver builds on weaveexec
2016-10-31 10:59:13 +00:00
Martynas Pumputis
5c2e878c64
Do not expose IPAM or DNS metrics when weave does not run IPAM or DNS
...
Otherwise, GET /metrics will crash weaver.
2016-10-25 16:54:35 +01:00
Martynas Pumputis
b1d6605e8f
Remove inaccurate Prometheus metrics
...
The metrics include:
- weave_packets_total
- weave_bytes_total
The problem with those metrics is that fastdp periodically flushes
flows including their stats thus makes the current implementation
of the metrics unreliable.
2016-10-24 11:23:10 +01:00
Bryan Boreham
4d8a40c0b5
Reduce metrics mechanism to just support fastdp
2016-10-21 14:44:12 +01:00
Bryan Boreham
0458d32089
Serve metrics on a different socket to the main API
...
Serve metrics+status on status socket and api+status+metrics on api
socket; the reasoning is that metrics or status are read-only hence
may be scraped from an off-machine connection, while we don't want to
open the control port up unprotected.
2016-10-20 16:25:16 +01:00
Bryan Boreham
b8d619dde7
Add Prometheus http handler for metrics
...
Metrics are: connection counts, active IP addresses, DNS addresses,
FastDP flow metrics, connection termination count
2016-10-20 16:25:16 +01:00
Bryan Boreham
6d5af85eee
Report count of active IP addresses in status
2016-10-20 14:04:41 +01:00
Bryan Boreham
71d550260f
Extract countDNSEntries function
2016-10-20 13:54:42 +01:00
Bryan Boreham
1092bae05c
Refactor: move 'unreachable' logic out of printing function
2016-10-20 13:54:42 +01:00
Matthias Radestock
85ac8177ad
inline (u)int8 array to string conversion
...
so that the code compiles regardless of the uts.Release array type,
which varies across platforms.
Fixes #2506
2016-10-06 08:57:12 +01:00
Adam Harrison
69b688b357
Merge pull request #2509 from weaveworks/issues/2503-persist-peers-fix
...
Create restart.sentinel after storing the peer list
2016-09-21 10:09:05 +01:00
Martynas Pumputis
cdeae04238
Create restart.sentinel after storing peer list
...
Otherwise, we risk to lose peer list when any failure happens after
the creation but before storing the list and as a consequence,
the weave container gets restarted.
2016-09-20 17:07:48 +01:00
Martynas Pumputis
06a325a05f
Use weaveworks/docker/pkg/mflag everywhere
2016-09-05 17:22:28 +03:00
Bryan Boreham
7ebf3d7a88
Don't crash when dockerCli is nil
2016-08-03 14:28:05 +01:00
Adam Harrison
0c14e5135a
Delint (spelling error)
2016-07-28 11:48:14 +01:00
Bryan Boreham
e5c23bf9f5
Don't crash if docker API is disabled by params
2016-07-05 13:02:59 +01:00
Bryan Boreham
d72d3af36e
Remove deprecated -awsvpc option
2016-06-28 13:35:47 +00:00
Matthias Radestock
b00e7d088e
Merge pull request #2372 from weaveworks/issues/2310-more-checkpoint
...
Add kernel version, Docker version and awsvpc setting to checkpoint info
Fixes #2310
2016-06-20 03:15:25 +01:00
Adam Harrison
27e7ec08d4
Observe resolv.conf changes
2016-06-16 16:55:40 +01:00
Bryan Boreham
1fe5c65fd4
Add kernel version, Docker version and awsvpc setting to checkpoint info
2016-06-14 12:24:37 +01:00
Bryan Boreham
e1edce84d9
Extract checkForUpdates to its own file
2016-06-14 10:33:46 +01:00
Bryan Boreham
b32da8d69f
Report a couple of options that are incompatible with --awsvpc
2016-06-13 16:53:27 +01:00
Martynas Pumputis
de2a70861c
Add GET /ipinfo/tracker
...
The endpoint returns the name of tracker. It is used to determine
whether the router is running a tracker.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
9fc7be83c8
Create a Tracker when starting the router
...
The tracker's HandleUpdate method is called by the ring update routines.
In addition, we add a dummy overlay for AWSVPC to make `weave (status|
report)` to produce reasonable reports which includes AWS hosts
connection state.
2016-06-08 16:44:54 +01:00
Adam Harrison
4b758dd130
Implement weave launch --resume
2016-06-03 13:53:07 +01:00
Martynas Pumputis
f50fbc002e
Change ipam Universe from Range to CIDR
...
There was no code to initialize it as anything else, and this lets us
bake in an assumption that it will always be a CIDR.
2016-06-01 17:06:31 +01:00
Adam Harrison
f02b78ed73
Merge branch '1.5'
...
Closes #2282
2016-05-26 16:16:54 +01:00
Bryan Boreham
cda1084777
Check validity of IP subnets
...
Be more consistent about this - check in the same way whether at startup
or during allocation.
2016-05-26 14:31:17 +00:00
Matthias Radestock
b6647741b5
Merge pull request #2162 from weaveworks/issues/2034-log-rest-api
...
Add LogHandler for logging REST API calls at server side
Fixes #2034
2016-05-04 12:39:11 +01:00
Martynas Pumputis
9dd1fbba39
Add LoggingHTTPHandler for logging REST requests at the server-side
2016-05-03 15:40:37 +01:00
Matthias Radestock
03afb54cdd
remove cruft
2016-04-29 10:03:23 +01:00
Adam Harrison
e6f031a3c9
Merge pull request #2218 from weaveworks/1.6-upgradeathon
...
Upgrade vendored libs
2016-04-28 10:13:44 +01:00
Matthias Radestock
7cc2a1fe38
refactor: more descriptive function name
2016-04-26 17:33:04 +01:00
Bryan Boreham
15054393fb
Update profile package to latest version
2016-04-26 14:57:04 +01:00
Martynas Pumputis
849edb1768
Add allocator.PeerGone
...
The function is registered within the mesh gc and it is responsible
for removing gone nicknames (#2057 ).
2016-04-22 17:29:27 +01:00
Adam Harrison
b9340ada3e
Improve IPAM status wording
2016-04-15 13:39:55 +01:00
Bryan Boreham
02516361c7
Merge pull request #2155 from weaveworks/issues/2065-rationalise-ipam-concepts
...
Rationalise IPAM concepts
2016-04-14 17:33:27 +01:00
Adam Harrison
c3ecbc9d48
Implement unified --ipalloc-init parameter
2016-04-14 12:46:03 +01:00
Bryan Boreham
358342aa4f
Use a data volume container for BoltDB files.
...
We provide a very small image to use for this container.
Also we add an empty weavedata.db file to weave image so it doesn't crash when run without volume override
2016-04-13 16:07:55 +01:00
Martynas Pumputis
928a693491
Extend version summary in the weave status report
...
The extended version summary includes info about a new available
version in the case the checkpoint is enabled.
2016-04-12 22:32:18 +01:00
Bryan Boreham
c12a52d20e
Better log and status messages for Paxos observer
2016-04-07 12:50:52 +01:00
Matthias Radestock
0f89f8562f
refactor(ish): parameterise dp creation by iface, not name
2016-03-30 14:07:33 +01:00
Matthias Radestock
8eb52538de
wait for datapath device
...
so that when the router container restarts after a reboot it waits for
the proxy to create the datapath device.
Fixes #2113
2016-03-30 14:01:57 +01:00