Commit Graph

198 Commits

Author SHA1 Message Date
Paul Bellamy
d5a2b5bb9d show all process and pod metadata, as there's only 4, and 3 rows respectively. 2016-02-11 09:39:25 +00:00
Paul Bellamy
dfb0f8036c Only show key metadata by default. Hide rest in a drawer.
To make the interface cleaner, we can hide some non-key metadata by
default.

This needs styling, js testing, and probably a js refactor.
2016-02-08 17:14:16 +00:00
Tom Wilkie
107d3068d5 Shorten docker container and image IDs in the details panel. 2016-02-08 15:52:56 +00:00
Paul Bellamy
30dd97bab5 Merge pull request #920 from weaveworks/refactor-detailed-metadata
minor refactor of backend metadata and metric rendering
2016-02-08 15:37:12 +00:00
Paul Bellamy
e33838f1e6 minor refactor of backend metadata and metric rendering 2016-02-08 14:01:00 +00:00
Paul Bellamy
7fbf86aa8f shorten some labels which were truncated 2016-02-08 11:07:41 +00:00
Paul Bellamy
a403917875 Add "# Containers" column to container images as children
Side effect is that it also adds it to the container image details panel
2016-02-05 11:13:37 +00:00
Paul Bellamy
55ee62d343 add test for render/detailed/parents and fixed bug 2016-02-04 17:55:06 +00:00
Paul Bellamy
9876140bfe moving render/detailed/parents to it's own file 2016-02-04 14:46:13 +00:00
Paul Bellamy
51be599ca5 Merge pull request #904 from weaveworks/docker-labels
move docker labels into their own table of the details panel
2016-02-03 12:23:39 +00:00
Paul Bellamy
0a292f530c move docker labels into their own table of the details panel 2016-02-03 10:29:28 +00:00
Tom Wilkie
f89018efb7 Merge pull request #903 from weaveworks/immutable-renderablenodes
Add some tests, and a zero-value for report.Sets
2016-02-02 08:50:42 -08:00
Paul Bellamy
154c996d08 couple labels were added while waiting to merge 2016-02-02 16:19:40 +00:00
Paul Bellamy
b21eeb7bcf key of process.CPUUsage changed, while waiting to merge 2016-02-02 16:17:58 +00:00
Paul Bellamy
cae6ac58a8 Merge commit 'e31520d' 2016-02-02 15:54:39 +00:00
Paul Bellamy
d5d06197ed TestMakeRenderableNodes 2016-02-02 15:40:36 +00:00
Tom Wilkie
6f9fdaa27e Rename applications -> processes in experimental and render/detailed. 2016-02-01 06:54:19 -08:00
Tom Wilkie
638c5676cb Add container uptime and restart count to details panel. 2016-01-29 14:31:40 -08:00
Tom Wilkie
d0d6cac448 Use different key to count IPs, so we don't clash with containers.
Fixes #870
2016-01-28 14:48:56 -08:00
Tom Wilkie
fdd252a2e2 Merge pull request #858 from weaveworks/immutable-nodeset
use immutability for the NodeSet
2016-01-27 13:56:14 -08:00
Paul Bellamy
94d52f02a7 Refactored render/memoise and added a basic test for it 2016-01-27 16:29:55 +00:00
Paul Bellamy
66790f4436 use immutability for the NodeSet 2016-01-27 11:10:51 +00:00
Paul Bellamy
1943ad440a Merge pull request #851 from weaveworks/memoise-and-cache
Memoise & cache the result of renderers, so we don't recalculate views multiple times.
2016-01-27 11:10:21 +00:00
Paul Bellamy
b5037f511c fix bug in containers being filtered by image name 2016-01-26 14:45:10 +00:00
Paul Bellamy
599bade33f Merge branch 'master' of github.com:weaveworks/scope 2016-01-26 10:03:55 +00:00
Tom Wilkie
0e3e3b74f8 Add benchmark for list topologies API. 2016-01-25 21:48:18 -08:00
Tom Wilkie
b1a3a15ac0 A more debugging 2016-01-25 14:23:39 -08:00
Tom Wilkie
f8cbaf0794 Flush cache between runs of the benchmark. 2016-01-25 13:53:38 -08:00
Tom Wilkie
b8daa02488 Memoise & cache the result of renderers, so we don't recalculate views multiple times. 2016-01-25 13:31:10 -08:00
Tom Wilkie
bc3f946810 Make NodeMetadatas immutable. 2016-01-23 13:02:16 -08:00
Tom Wilkie
6b56475766 Use ps.Map for Counters and Sets, remove Metadata in favour of Latest.
Also
- Add more complicated report.json for benchmark
- Break up report/topology.go
- Implement our own DeepEqual for ps.Map
2016-01-22 15:10:32 -08:00
Paul Bellamy
21ae0aa253 Merge commit '77949db' 2016-01-22 09:41:40 +00:00
Paul Bellamy
e31520dddd refactor detailed key label rendering into a single dictionary 2016-01-21 11:55:45 +00:00
Paul Bellamy
77949db711 use constants for topology names (missed a few) 2016-01-20 16:16:58 +00:00
Paul Bellamy
bf57aeb8d9 Rename the various metric keys so they don't accidentally overlap 2016-01-20 16:14:32 +00:00
Paul Bellamy
0190c15145 Making fixture report metrics more specific 2016-01-20 16:13:56 +00:00
Paul Bellamy
3d32d10e2d fixing up some performance issues in NodeSet 2016-01-19 16:31:08 +00:00
Paul Bellamy
e7c9d4b771 adding a benchmark for the various render topologies 2016-01-19 16:47:49 +01:00
Paul Bellamy
cb9d558665 Review feedback refactoring 2016-01-19 16:47:48 +01:00
Paul Bellamy
54d0db0441 templatize metric rendering and shorten column names 2016-01-19 16:47:48 +01:00
Paul Bellamy
e30c9dc264 use constants for the topology names in Parents/metadata/metrics 2016-01-19 16:47:48 +01:00
Paul Bellamy
3cda328976 remove hostID from container image node ids 2016-01-19 16:47:48 +01:00
Paul Bellamy
56122dd0cc Details panel backend redesign
Megasquish:
  [app] remove unused edge endpoint
  [WIP] refactoring node details api endpoint
  [WIP] plumbing the children through the rendering process
  adding IDList.Remove and StringSet.Remove
  [WIP] working on adding parents to detailed node renderings
  WIP UI components with mock backend data for new details
  grouping children by type
  UI components for node details health and info
  metric formatters for details panel
  Column headers and links for details table
  [WIP] started on rendering node metadata and metrics in the detail view
  DetailedNode.LabelMajor -> DetailedNode.Label
  rendering decent labels for parents of detailed nodes
  render metrics onto the top-level detailed node
  removing dead code
  Links to relatives
  metrics have a Format not Unit
  Show more/less actions for tables and relatives
  adjusted metric formatter
  TopologyTagger should tag k8s topology nodes
  make renderablenode ids more consistent, e.g. container:abcd1234
  working on rendering correct summaries for each node
  adding report.Node.Rank, so that merging is independent of order
  rendering children and parents correctly
  output child renderableNode ids, so we can link to them
  add group field to metrics, so they can be grouped
  Refactored details health items to prepare for grouping
  add metrics to processNodeSummaries
  hide summary section if there is no data for it
  fixing up tests
  moving detailed node rendering into a separate package
  Node ID/Topology are fields not metadata
    - This way I think we don't have to care about Metadata being non-commutative.
    - ID and topology are still non-commutative, as I'm not sure how to sanely
  merge them, but it's possible we don't care.
  host memory usage is a filesize, not a percent
  working on fixing some tests
  adding children to hosts detail panel
    - Had to redo how parents are calculated, so that children wouldn't interfere with it
    - have to have the host at the end because it is non-commutative
  only render links for linkable children (i.e. not unconnected processes)
  resolving TODOs
  fixing up lint errors
  make nil a valid value for render.Children so tests are cleaner
  working on backend tests
  make client handle missing metrics property
  Stop rendering container image nodes with process summaries/parents
  fix parent link to container images
  Calculate parents as a set on report.Node (except k8s)
  refactoring detailed.NodeSummary stuff
  removing RenderableNode.Summary*, we already track it on report.Node
  working on tests
  add Columns field to NodeSummaryGroup
  fixing up render/topologies_test
  fix children links to container images
  get children of hosts rendering right
  working on host renderer tests
  Change container report.Node.ID to a1b2c3;<container>
  The id should be globally unique, so we don't need the host id.
    This lets the kubernetes probe return a container node with the pod id,
    which will get merged into the real containers with other reports. The
    catch is that the kubernetes api doesn't tell us which hostname the
    container is running on, so we can't populate the old-style node ids.
  change terminology of system pods and services
  Fix kubernetes services with no selector
  Fixes handling of kubernetes service, which has no pods
  fix parent links for pods/services
  refactor detailed metadata to include sets and latest data
  fixing up host rendering tests
  fleshing out tests for node metadata and metrics
  don't render container pseudo-nodes as processes
  Update test for id format change.
2016-01-19 16:39:37 +01:00
Tom Wilkie
23fd123370 Merge pull request #824 from weaveworks/820-custom-image-port
Correctly extract image name when using custom hub.
2016-01-18 05:39:09 -08:00
Tom Wilkie
984fd528c0 Correctly extract image name when using custom hub. 2016-01-15 12:41:29 -08:00
Alfonso Acosta
1133daa243 k8s: Filter out pause as a system container 2016-01-15 15:34:04 +00:00
Tom Wilkie
123c40028f Less hacky fix for /%2F bug 2016-01-14 07:10:31 -08:00
Alfonso Acosta
bd5cfd9570 k8s: Render container names from label "io.kubernetes.container.name" 2016-01-12 18:32:25 +00:00
Tom Wilkie
e9e152b9a3 Use argv[0] for process name to be more like ps. 2016-01-06 11:55:34 +00:00
Tom Wilkie
8efa0d147b Review feedback 2015-12-16 14:38:22 +00:00