Bryan Boreham
20ce708db9
Don't bother deduplicating IPs; they end up in a set
2018-06-04 16:41:24 +00:00
Bryan Boreham
c6c51f36f7
Limit network namespace code to compile on Linux only
2018-06-04 10:54:02 +00:00
Bryan Boreham
ff5b2affe0
probe: fetch container IP addresses from inside its namespace
...
So that we can pick up addresses added via CNI or other mechanisms
that Docker is not aware of.
2018-06-02 21:49:30 +00:00
Roland Schilter
f012c23ca1
Sentence cased text everywhere ( #3166 )
...
* Sentence cased text everywhere
Follows Weave Cloud's direction of sentence case on most things.
* More space between sorter caret and label
* Use full topology name for table header
2018-05-17 17:30:38 -07:00
Filip Barl
bfb20a8f40
Addressed @LiliC's feedback.
2018-05-17 11:43:54 +02:00
Filip Barl
183aaea950
Fixed the tests.
2018-05-17 11:09:31 +02:00
Filip Barl
4382deb39b
Show image tag separate from image name in Node Details.
2018-05-17 11:09:31 +02:00
Matthias Radestock
805572d70e
refactor: inline single-use constant
2018-04-02 13:50:22 +01:00
Matthias Radestock
e852b18e42
refactor: remove unused constant
2018-04-02 13:48:29 +01:00
Matthias Radestock
076acdb319
send shortcut reports on all container state changes
...
This got broken in cec750049f .
2018-03-25 09:08:45 +01:00
Matthias Radestock
adc46e84e8
Merge pull request #3094 from weaveworks/remove-getchildren
...
Remove unused process tree function GetChildren()
2018-02-26 13:43:29 +00:00
Bryan Boreham
262cea2797
More efficient docker Tagger
...
Augment existing node rather than creating a new one then merging it,
and avoid creating a set with one entry.
2018-02-26 12:43:00 +00:00
Bryan Boreham
c06429b92a
Remove unused process tree function GetChildren()
2018-02-26 08:54:31 +00:00
Bryan Boreham
3941424794
Don't add null entries to container nodes for networks
...
or the "none" network, which is a special case meaning none.
2018-02-23 18:09:18 +00:00
Matthias Radestock
5b30b668ae
refactor: don't return receiver in Topology.AddNode()
...
This had little use and was obscuring the mutating nature of
AddNode().
2018-02-19 05:10:04 +00:00
Matthias Radestock
1f2247a8c4
move node metadata keys into report package
...
Both the probe and the app (for rendering) need to know about them.
2017-12-11 20:26:08 +00:00
Filip Barl
f5bfa506d6
Verified the TODO comments and make durations be in seconds.
2017-11-03 10:43:41 +01:00
Filip Barl
320b9e240f
Abstracted the report data types.
2017-11-03 10:43:41 +01:00
Filip Barl
6c0194b832
Show uptime durations in a more human format.
2017-11-03 10:43:41 +01:00
Damien Lespiau
5990ad4947
docker: Close pipe when the docker API call fails
...
This hasn't been found in the wild but by code inspection. If we fail the
docker API call, the pipe is never closed. Close it before returning.
2017-10-16 23:30:46 +01:00
Matthias Radestock
8935d434c5
run a normal (rather than login) shell in containers
...
That way PATH is preserved.
Fixes #2550 .
2017-08-01 08:53:56 +01:00
Matthias Radestock
430e74a80a
refactor: remove report latest map Delete()
...
It wasn't used, and is problematic in any case since it introduces
non-monotonicity.
2017-07-03 02:06:21 +01:00
Matthias Radestock
9dc50b5202
refactor: hide "empty set" constants
...
They are an implementation detail.
2017-07-03 01:26:22 +01:00
Roland Schilter
651e52b5a5
Honor DOCKER_* env variables in probe and app
...
Changed default for flag `-app.docker` to use the DOCKER_* env variables
instead of hardcoded /var/run/docker.sock; uses docker's default if
no DOCKER_HOST defined, for both probe and app.
Fixes #1975
2017-06-27 17:14:49 +02:00
Matthias Radestock
4a54b75419
forgot this one in #2622
2017-06-20 20:43:26 +01:00
Mike Lang
51999529a7
Add docker swarm Stack selector ala k8s namespace selector
...
We have to introduce the kinda hacky concept of a 'No Stack' stack
to reconcile it with the idea of a 'default' k8s namespace. This is important
because swarm services without a stack don't have the same docker labels as ones that do.
Curiously, they still have what appears to be a stack name 'prefix' on their names,
but I can't isolate that name anywhere easily so they'll just have to make do.
I basically copy-pasted updateFilters to make this work, todo go back and refactor
to not duplicate 90% of the code.
2017-04-18 09:08:22 -07:00
Mike Lang
72bcdba1c3
swarm service: Capture stack namespace and strip it from name
2017-04-17 15:13:50 -07:00
Mike Lang
327b909956
probe/docker: Populate SwarmService topology based on docker labels
...
This isn't the best way to do it, but it will work well enough for an initial implementation
2017-04-14 12:51:28 -07:00
Alfonso Acosta
8bf753a51b
Revert "Revert "Add options to hide args and env vars ( #2306 )"" ( #2311 )
...
* Revert "Revert "Add options to hide args and env vars (#2306 )""
* Make linter happy
2017-03-08 02:16:42 -08:00
Alfonso Acosta
dcc7389127
Revert "Add options to hide args and env vars ( #2306 )"
...
This reverts commit 764afb6301 .
2017-03-07 17:51:27 +01:00
Mike Bryant
764afb6301
Add options to hide args and env vars ( #2306 )
...
* Add options to hide args and env vars
To allow for use of weave-scope in an unauthenticated environment,
add options to the probe to hide comand line arguments and
environment variables, which might contain secret data.
Fixes #2222
* Change docker.NewRegistry arguments to be a struct
* Remove redundant declarations of default values
* Move registry options outside to improve readability
2017-03-07 08:51:18 -08:00
Filip Barl
d3466b5454
Refactored the table component/model and wrote the tests
...
Backward-compatibility fix
2017-01-16 17:05:36 +01:00
Filip Barl
e475a09ee6
Rendering sortable generic tables in the UI
...
Rendering generic table columns
Made Type a required attribute for TableTemplate
Made generic table sortable on the UI
2017-01-16 12:22:10 +01:00
Filip Barl
31be525bd2
Created generic table model on backend
...
Replaced MetadataRow with generic Row in Table model
Sending through multicolumn tables from the backend
2017-01-16 12:22:10 +01:00
Jonathan Lange
1020fc5f85
Use test.Diff from common
2016-12-07 11:22:40 +00:00
Jonathan Lange
e8085b01b6
Use 'common' library
2016-12-07 11:22:38 +00:00
Alfonso Acosta
e57cd8d2e7
Fix time-dependant test (stop testing docker client library)
2016-11-10 16:35:57 +00:00
Alfonso Acosta
3ba83ddd53
Merge pull request #1973 from weaveworks/1938-enrich-weave-details-panel
...
Extend metadata in details panel for Weave Net nodes
2016-11-04 09:44:27 +01:00
Alfonso Acosta
0884955c95
Extend metadata in details panel for Weave Net nodes
2016-11-03 15:57:23 +00:00
Simon
7e5166e45e
Merge pull request #1966 from weaveworks/746-resize-ttys
...
Resize TTYs
2016-11-03 11:06:16 +01:00
Alfonso Acosta
3af7076f30
Review feedback
2016-11-02 14:46:56 +00:00
Alfonso Acosta
9e378ca4b5
Show image information at the beginning
2016-11-02 13:16:12 +00:00
Alfonso Acosta
216cc0d605
Add image table to container nodes
...
Also, extend metadata of images with sizes
2016-11-02 13:16:11 +00:00
Alfonso Acosta
9367d95cb0
Allow providing fixed entries in tables
2016-11-02 13:00:15 +00:00
Alfonso Acosta
253657887c
Implement TTY resize for hosts
2016-10-31 12:11:25 +00:00
Alfonso Acosta
6a3910d20a
Fix backend tests
2016-10-31 10:15:50 +00:00
Alfonso Acosta
411f8d729e
Remove leftover functions
2016-10-31 11:04:41 +01:00
Alfonso Acosta
2443f7a3c5
Implement resize control for docker TTYs
2016-10-31 11:04:40 +01:00
Alfonso Acosta
c2f2a90b61
Implement App endpoint /pipe/{id}/resize_tty/{height}/{width} to resize ttys
2016-10-31 11:04:39 +01:00
Alfonso Acosta
b458c4c0c8
Merge pull request #1182 from weaveworks/1132-weave-topology
...
Add the basics for a Weave-specific topology.
2016-10-28 12:23:55 +02:00