Commit Graph
694 Commits
Author SHA1 Message Date
Bryan Boreham d6993c0fc5 rendering: simplify ContainerHostnameRenderer
The second half of the render added all the same nodes, except for
those with no Docker image information, so we could show a figure for
those filtered out on that basis.

This just isn't worth the effort.
2019-11-01 19:14:38 +00:00
Bryan Boreham b691bf3134 refactor: simplify ContainerImageRenderer
Crunch a Map and Reduce into a single Renderer that has the same function.
2019-10-28 09:02:04 +00:00
Bryan Boreham 5506426fe9 comment 2019-10-27 14:28:03 +00:00
Bryan Boreham 07e9c173bf refactor: remove unused parameterisation of containerWithImageNameRenderer 2019-10-27 14:27:44 +00:00
Bryan Boreham 0fc7917561 refactor: change process-to-container from a Map to a Renderer 2019-10-25 08:14:04 +00:00
Bryan Boreham 57911118c8 refactor: joinResults.result() takes a plain report.Nodes map 2019-10-23 18:53:08 +00:00
Bryan Boreham ad9f8b6f1f refactor: better naming for MapEndpoints parameters 2019-10-23 18:35:23 +00:00
Bryan Boreham ce5d38d01e fixup: one more Merge() where newest should be on the right 2019-10-20 10:29:14 +00:00
Bryan Boreham 4658568330 Move Counters into Latest
The only place Counters are used is in rendering, for the number of
nodes under a topology, so the overhead of holding a unique data
structure in every Node is unwarranted.
2019-10-20 10:16:45 +00:00
Bryan Boreham 8be6ca5e1e fixup: remove timestamp argument from node.WithLatest() 2019-10-19 15:00:55 +00:00
Bryan Boreham 07287c6ac0 Move timestamp up from 'Latest' string map to Report level
We never merge multiple string values in a single node from different
sources, so it's sufficient to take the value from the latest report.
2019-10-19 15:00:55 +00:00
Bryan Boreham 0b641b1848 performance: Send active controls as a single string per node
Instead of a whole extra data structure which is quite expensive to
marshal and unmarshal, just send the information in a string.  No
clever merging strategy is required - the states are all set in one
place per node type.
2019-10-14 18:52:57 +00:00
Bryan Boreham ad34c5fd26 refactor: camlistore lru package moved location 2019-09-23 10:43:17 +00:00
Bryan Boreham 871751873b Stop render package depending on probe
This dependency makes it harder to see the structure of the program,
and sometimes complicates compilation.

Mostly just changing the source of strings that are already exported
from the report package.  A few new strings have to be moved there,
plus the function `IsPauseImageName()`.
2019-09-15 17:03:04 +00:00
Bryan Boreham 4210bc76f4 Refactor: stop depending on probe code to render image names 2019-09-13 11:41:16 +00:00
Bryan Boreham 15467d7310 Move host-related names out of probe code
Reduce the dependency on low-level libraries
2019-09-13 11:41:09 +00:00
Satyam Zode 36361d6b7d Add Kubernetes Job support to Weave Scope
This covers:
- Implementation of the job resource in probe
- Reporter changes for the job
- Add Describe Control to the job
- Pass job object to the kube controller renderer

ToDo:
- Need to decide the shape for the Job.

Signed-off-by: Satyam Zode <satyamzode@gmail.com>
2019-05-19 02:36:45 +05:30
Filip Barl e66a3e08dc Add a confirmation dialog for deleting a pod. 2019-02-26 11:57:00 +01:00
Filip Barl 353ab75ddb Added some tests for censoring. 2019-02-23 19:30:42 +01:00
Filip Barl c5022bd2bb Code cleanup. 2019-02-22 14:56:44 +01:00
Filip Barl 2c56ec2bf1 Made censoring work properly. 2019-02-21 16:46:17 +01:00
Filip Barl 0f1b7e5972 Prepare to filter node summaries post-render. 2019-02-21 16:18:24 +01:00
Filip Barl 3c5320ef09 Polished the code and applied censoring to other API endpoints. 2019-02-21 14:34:05 +01:00
Filip Barl 97fdcdc525 Option to censor raw reports by command line args and env vars. 2019-02-15 17:31:08 +01:00
Akash Srivastava 60a1c66430 Fix one pod to multiple PVC connection
Read all the PVC source from a pod spec
and add adjacency between the pod and its PVCs.

Signed-off-by: Akash Srivastava <akashsrivastava4927@gmail.com>
2019-01-13 20:10:51 +05:30
Roland Schilter f8412c3204 Rename :orgId to :instanceId in metrics graph url
- Renames placeholders `:orgId` to `:instanceId` in
  `--app.metrics-graph`
- Adjusts frontend client to use the provided instanceId by its host
  application (Weave Cloud)
2018-12-17 17:57:00 -08:00
Akash Srivastava 00168819c5 Check Pod and PVC namespace while rendering
- Name of the PVC can be same in different namespaces, in this
scenario an application pod is connected to multiple PVC.

Signed-off-by: Akash Srivastava <akashsrivastava4927@gmail.com>
2018-12-08 19:34:30 +05:30
Bryan Boreham 5c9b0f179d Don't look for blank volume claims
If a pod has no VolumeClaim set, just move on to the next pod.
Eliminates small waste of time.
2018-11-26 11:53:06 +00:00
Bryan Boreham 94dbee2124 Move "hideous hack" for Kubernetes service network from probe to app
This avoids side-effects from reporting Kubernetes from a
cluster-level probe, and removes a lie from the probe data.

Rather than do the work every time the probe sends a report, we do it
every time the app renders endpoints, which should be once per merged
report set.
2018-11-19 14:54:20 +00:00
Simon Howe d3a36cf873 Load up fa5 instead of 4
- Switch to fa5 icons and tweak font-sizes a bit
2018-11-13 12:51:31 +01:00
Simon e78f8a8de4 Revert "Upgrade to Font Awesome 5" 2018-11-12 11:22:19 +01:00
Simon Howe 2cc58f5b00 Switch to fa5 icons and tweak font-sizes a bit 2018-11-09 14:59:53 +01:00
Bryan Boreham 3be8cf71dd Add more Opentracing detail to the app (#3383)
* Pass Go context down to Renderers

This is useful for cancellation or tracing.

* Add tracing spans to app

Also log things like number of nodes in Map, total number of reports.
2018-10-26 11:21:33 +05:30
Bryan Boreham 8cccbb695b Merge pull request #3274 from weaveworks/kubernetes-tagger
Enable Kubernetes objects to be reported just once in a cluster
2018-10-19 16:48:37 +01:00
Akash Srivastava 81a682893f Add kubernetes volume snapshot support
- Add a new client in probe/kubernetes/client.go
  which will be used to fetch details of Snapshot CRD
- Visualize VolumeSnapshot and VolumeSnapshotData
- Add adjacency between PV and VolumeSnapshot
- Add adjacency between VolumeSnapshot and VolumeSnapshotData
- Add snapshot filter to hide and show snapshots

Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
2018-10-16 01:04:44 +05:30
Akash Srivastava ea9ad0a1e6 Update topology to include tag
Tag can be used to specify the sub-shape for the given node.

Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
2018-10-16 01:04:42 +05:30
Bryan Boreham 0c394e689a Fix pod host propagation 2018-10-12 13:47:39 +00:00
Bryan Boreham 1279a02b7d Stop tagging pods with host ID
So they can be reported centrally, find the pod host ID from the child
containers.
2018-10-11 17:54:29 +00:00
Bryan Boreham c1b1ee2a1b Merge pull request #3266 from weaveworks/slim-metrics
Remove First and Last data members from Metrics structs
2018-08-24 17:39:21 +01:00
guyfedwards a38b6213d1 rename storagesheet to sheet
the client now expects a node shape of `sheet` not `storagesheet`
update report.go to reflect this.

fixes #3322
2018-08-22 13:07:45 +01:00
Bryan Boreham aa40f944d3 Merge pull request #3260 from openebs/storage-driver
Add storage driver name to Persistent Volume
2018-07-31 17:58:38 +01:00
Akash Srivastava 715747bda4 Add storage driver name to Persistent Volume
Every PV is backed by storage driver. This will show
storage driver in the PV metadata.

Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
2018-07-20 11:41:06 +05:30
Bryan Boreham 9efd6afd7c Merge pull request #3268 from weaveworks/optimise-withlatests
Optimise Node.WithLatests()
2018-07-18 14:04:35 +01:00
Bryan Boreham cc79b7631e Propagate multiple container values at once
This is more efficient than repeatedly inserting a single value.
2018-07-18 12:52:27 +00:00
Bryan Boreham 0d2409c72c Add method to add a single string into Sets
This avoids creating and discarding a StringSet just to pass the parameter
2018-07-17 13:51:46 +00:00
Alfonso Acosta 0a5fb7aad3 Remove ProcessWithContainerNameRenderer, it wasn't working (#3263) 2018-07-13 13:34:37 +02:00
Bryan Boreham 1cfc8f4581 Remove First and Last data members from Metrics structs
They can be trivially computed when required.
2018-07-11 19:19:01 +00:00
Bryan Boreham 5067cc9059 Merge pull request #3232 from weaveworks/dont-overwrite-input
Stop filterUnconnected() modifying its input
2018-06-21 10:17:51 +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 39dd0268b0 Stop filterUnconnected() modifying its input
Helper function filterInternetAdjacencies() would sometimes copy and
sometimes not copy the input. Changed to always copy, before calling.
2018-06-20 08:49:48 +00:00