Commit Graph

4924 Commits

Author SHA1 Message Date
Aaron Kirkbride
86ffa6dd6a Correct api.getFluxImages usage 2018-06-20 13:41:14 +01:00
Bryan Boreham
183396ed54 Merge pull request #3201 from weaveworks/dont-map-pod-blank-ip
Don't return blank addresses for pods
2018-06-20 10:39:18 +01:00
Bryan Boreham
aee205594b Merge pull request #3204 from weaveworks/print-reports-stdout
Add option to print probe reports to stdout, for debugging
2018-06-20 10:38:56 +01:00
Bryan Boreham
80dbd3443c probe: Add -probe.publish.stdout option for debugging
This option gives a crude way to view the raw probe data as json in
the container logs, so that you can check exactly what it would have
sent.

We stub out the PipeClient interface with a dummy implementation in
this mode.
2018-06-19 22:59:01 +00:00
Bryan Boreham
31490e4dcb probe: Refactor: Move Weave resolver up to where other apps are added
This makes the next code change easier to see.
2018-06-19 22:59:01 +00:00
Bryan Boreham
06c895267c Reports: streamline report serialization
Move the creation of the buffer and the choice of compression level
(which never changes) into WriteBinary(), to simplify the code.
2018-06-19 22:59:01 +00:00
Bryan Boreham
56137211b5 probe: Eliminate appclient.reportPublisher
Simplification: move the 'noControls' functionality into the probe, as
we don't need a whole struct to do that.

The ReportPublisher interface also moves into probe where it belongs:
"the consumer should define the interface" - Dave Cheney
2018-06-19 22:59:01 +00:00
Bryan Boreham
96f51c47af probe: Eliminate Publisher interface from app_client
Simplification: everything now implements Publish(Report), and we do
away with writing/reading/writing in the MultiAppClient.
2018-06-19 22:51:25 +00:00
Filip Barl
6545ba1835 Merge pull request #3230 from weaveworks/265-user-new-accent-colors
Use new accent theme colors
2018-06-19 16:10:14 +02:00
Filip Barl
25afeb1416 Use new accent theme colors. 2018-06-19 14:14:38 +02:00
Filip Barl
ed4ad467d8 Merge pull request #3229 from weaveworks/259-new-purple-colors
Use new purple theme colors
2018-06-18 18:01:31 +02:00
Filip Barl
f9bfa16fe7 Use new purple theme colors. 2018-06-18 17:06:30 +02:00
Bryan Boreham
86f3601505 Merge pull request #3226 from weaveworks/update-amis
Update AWS AMI IDs
2018-06-15 10:20:57 +01:00
Filip Barl
c14dc02137 Merge pull request #3227 from weaveworks/260-collapse-gray-colors
Use new theme gray colors
2018-06-14 17:34:02 +02:00
Filip Barl
6e0a2ad957 Addressed @bia's comments. 2018-06-14 17:30:41 +02:00
Filip Barl
61b3a1d282 Use new theme gray colors. 2018-06-14 17:21:28 +02:00
Adam Harrison
4c5678cac2 Merge pull request #3228 from weaveworks/fix-deployment-yaml
Pass node name via correct env var
2018-06-14 15:35:13 +01:00
Adam Harrison
8b1f8242f2 Pass node name via correct env var 2018-06-14 15:05:51 +01:00
Bryan Boreham
ce170eb293 Add note about MFA credentials 2018-06-13 17:00:16 +00:00
Bryan Boreham
4189979543 Update AMI ids for latest version 2018-06-13 16:31:24 +00:00
Filip Barl
192f5cc6d2 Merge pull request #3222 from weaveworks/2614-show-timeline-deployments
Show deployments in Time Travel
2018-06-12 17:47:16 +02:00
Filip Barl
b9b8e5afd3 Fix z-index issues. 2018-06-12 15:16:18 +02:00
Filip Barl
a096f2f76a Reloading deployments in Time Travel. 2018-06-12 15:05:50 +02:00
Filip Barl
35bcd28e81 Show timeline deployments. 2018-06-12 11:35:33 +02:00
Filip Barl
7960c15388 Merge pull request #3221 from weaveworks/1457-url-feature-names
Separate API endpoint namespace from URL path part
2018-06-11 17:10:18 +02:00
Filip Barl
ecc5f5ed63 Separate API endpoint namespace from URL path part. 2018-06-11 15:56:28 +02:00
Bryan Boreham
8c18a785e7 Merge pull request #3132 from openebs/add-pv-pvc-support
Add Kubernetes Storage (pv and pvc) support in Weave Scope
2018-06-08 12:41:21 +01:00
Satyam Zode
d9bd17af8a Refactor edge frontend code and reporter
- Refactor dotted edge logic.
- Change Storage view to show storage components as well as all
  the pods.
- Sentence case storage related variables.

Signed-off-by: Satyam Zode <satyam.zode@openebs.io>
2018-06-08 16:37:48 +05:30
Satyam Zode
24741bec2a Simplify volume rendering code in render
- Remove the complex volume rendering code.
- Remove volume specific code from Transform.
- Rename filtering methods
- Remove extra params from PV, PVC nodes to make table view look good.

Signed-off-by: Satyam Zode <satyam.zode@openebs.io>
2018-06-08 16:37:42 +05:30
Satyam Zode
d26b2c3805 Add Kubernetes storage class resource to weave scope
This will:

- Add StorageClass resource. Storage classes are mentioned
in the PVC spec. We're using storage class name from PVC spec to
add adjacency to the PVC node.
- Add square sheet shape for StorageClass.
- Add storage filter in the PODS topology.
Storage Filter will allow user to see distinct view of
stateful applications.
- Add visually distinct edge to show storage adjacency.

Signed-off-by: Satyam Zode <satyam.zode@openebs.io>
2018-06-08 16:36:29 +05:30
Satyam Zode
2f69973de6 Add adjacencies for kubernetes storage components
- Kubernetes storage components such as PV and PVC are connected based on two
parameters Persistent volume claim name and Persistent Volume name.
- PVC contains the volume name which is, PV name itself. Hence, we can
show edge for PVC and PV.
- This will bring higher level visibility for kubernetes storage components.

Signed-off-by: Satyam Zode <satyam.zode@openebs.io>
2018-06-07 17:04:56 +05:30
Satyam Zode
23210a6a77 Add Kubernetes volumes support in Weave Scope
This will

- Add Kubernetes volume resources such as PV, PVC.
- Add shapes for Kubernetes PV and PVC
- Add `Cylinder` shape for PV and `Dotted Cylinder` shape for PVC.

Signed-off-by: Satyam Zode <satyam.zode@openebs.io>
2018-06-07 17:01:29 +05:30
Bryan Boreham
59e28f2066 Merge pull request #3216 from weaveworks/fix-process-message
Probe: fix message to name the correct flag
2018-06-07 09:25:40 +01:00
Bryan Boreham
dcdd398b60 Probe: fix message to name the correct flag 2018-06-06 12:28:37 +00:00
Bryan Boreham
269c09c6fe Merge pull request #3215 from weaveworks/remove-probe-backwards-compat
Probe: remove backwards-compatibility code when publishing reports
2018-06-06 10:12:10 +01:00
Bryan Boreham
009af5be0c Probe: remove backwards-compatibility code when publishing reports
Removed to reduce CPU and memory usage in probes.

This code was added in August 2016 so that newer probes could be used
with older apps. Since then we have adopted the stance that new apps
will accept reports from old probes but not vice-versa, on a version
change.
2018-06-05 16:47:23 +00:00
Jordan Pellizzari
eeb126116a Merge pull request #3213 from weaveworks/report-404
Fix scope report download URL
2018-06-05 06:53:39 -07:00
jpellizzari
d76483f73f Fix scope report download URL 2018-06-04 13:45:45 -07:00
Bryan Boreham
d58a4df6bd Merge pull request #3207 from weaveworks/fetch-namespace-ips
Fetch container IPs directly from the namespace instead of calling 'weave ps'
2018-06-04 20:20:54 +01:00
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
bianca cheng costanzo
d7d3244148 Merge pull request #3206 from weaveworks/even-lighter-background
Slightly lightening background to match the rest of WeaveCloud
2018-06-04 10:56:44 +02:00
Matthias Radestock
325c0cc007 Merge pull request #3208 from weaveworks/3205-connected-process-by-name
make process-by-name topology show something (again)

Fixes #3205
2018-06-04 08:35:16 +01:00
Matthias Radestock
15b605f804 make process-by-name topology show something (again)
...when 'Hide Unconnected' is selected, which is the default.

Here's the problem...

The connectedness filter looks for `is_connected` marks in the Latest
map of the nodes. The mark is added by ColorConnected, which is
invoked by ProcessRenderer. That in turn is the base renderer for
ProcessNameRenderer, which is what the process-by-name view
renders. However, the process2Names mapping does not propagate any
metadata, hence there are no `is_connected` marks on the result
nodes. Consequently they are all filtered out.

The problem was introduced in #3009, when I added the ability for
users to chose whether to show or hide unconnected
processes (previously unconnected processes were always hidden) -
looks like I failed to check that the process-by-name view was working
with the new filter. Oops.

The fix is to move the ColorConnected call from ProcessRenderer to the
higher-level renderers - ProcessWithContainerNameRenderer (which is
what the 'Processes' view renders) and ProcessNameRenderer.

This has the beneficial side effect of improving performance for other
renderers which invoke ProcessRenderer, none of which need
connectedness-coloring.

Fixes #3205
2018-06-03 07:01:40 +01:00
Bryan Boreham
ade54ba84e probe: stop calling 'weave ps'
Now that we enter the container namespace to fetch IPs for every
container, there is no need to have 'weave ps' do it.

This does mean we lose Weave MAC addresses, but that is a rather
idiosyncratic feature anyway.
2018-06-02 22:22:08 +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
Bryan Boreham
5ab00ae664 Build: update to Go 1.10
So that we can rely on the fix to runtime.LockOSThread()
2018-06-02 21:48:01 +00:00
Bryan Boreham
a883e93080 Vendor: add vishvananda/netns and netlink
We will use them to fetch IP addresses from container namespaces

Required an update to golang.org/x/sys/unix
2018-06-02 21:45:17 +00:00
Bianca Cheng Costanzo
f07202ea05 changed background to whiteSmoke now that everything else is 2018-06-01 16:07:26 +02:00
Bryan Boreham
fe28febbe1 render: Don't return blank addresses for pods
A small performance improvement - instead of creating an entry in a
map which doesn't match anything, just skip a pod with a blank IP.
2018-05-29 15:30:15 +00:00