Commit Graph

334 Commits

Author SHA1 Message Date
Alfonso Acosta
b64686ffc3 Identify kubernetes pause containers more broadly 2016-08-08 14:16:07 +00:00
Simon Howe
d0b99969ea Grid-mode tuning!
- Change scrolling behaviour to lock headers in place
- Enable filtering (hitting enter in the search bar) in grid-mode
- Little more top-margin for k8s (can have 3 topos) + taller rows.
- Trying out rank-color + node.relatives in the grid-mode
- First pass at selecting rows.
  - Needs a bit more a fiddle, colors + click areas
- Store grid sort direction (asc/desc) in url state
- Simplify node selection to one method. (over-ride existing card)
  - Remove clicking on name directly (links) to overlay new cards for now.
- Playing w/ grid-mode-toggle icons and labels
- Improves rendering in ff, change of shortcut keys for grid-mode-toggle
- Playing w/ clearer selection colors for grid-mode
- Slight change to selection-ui
- Fixes showNodeInTopology button visibility on the details-panel
  - Was using an old heuristic. Table-mode allows you to open child cards
    before the parent.
- Make it clear what the default sort is in tables
  - E.g. always show a sorting caret
- Sort grid-mode columns, first meta then metrics
- dancing-nodes rememdy #1: pause updates onRowHover
- Splits relatives out into their own columns
- Take into account scrollbar width for grid-mode col header position
- Tooltips on table column headers
- grid-mode: fixes first column headers (proc/container/c-by-image)
- Disable pause-on-hover, too aggresive
- reduce label column width a bit (33pc -> 25pc) for big tables
- Filter grid-mode onSearchChange
  - Rather than previous behaviour of waiting for an <enter>
- Show label_minor on pseudo nodes, that might not have much other info
- grid-mode: further reduce width of id column.
- Fixes go tests, properly moves parents into node-summary
- Fixes sorting of string columns w/ missing fields.
  - E.g. uptime. Where -1e-10 > '3days' doesn't work.
2016-08-03 08:50:37 +02:00
Alfonso Acosta
8a950a59d6 Remove Metric Add() method
* Helps reduce garbage (MakeMetric() now takes a slice and there's a shorter version MakeSingletonMetric())
* Fixes bug computing Max (Min) in samples since using MakeMetric()
  was causing a default Max/Min of zero.
* Simplifies code a bit
2016-08-01 16:58:11 +00:00
Alfonso Acosta
c843d24f6f Do not infer short-lived connections for host-networking containers 2016-07-07 15:44:13 +00:00
Tom Wilkie
c80eb42a4f Add filters for pseudo nodes. (#1581)
* Add filters for pseudo nodes.

- Don't filter the internet node as a pseudo node.
- Rename pseudo filter to unmanaged/uncontained.
- Review feedback
- Move the FilterFoo funcs into the tests
- Drop the 'nodes' from filter labels.

* Fix experimental
2016-06-16 20:09:13 +01:00
Tom Wilkie
73e2effb9f Join pod topology directly with short lived connections (#1597)
* Join pod topology directly with short lived connections

* Review feedback
2016-06-16 19:05:15 +01:00
Tom Wilkie
fba555c985 Use image name without version as id. (#1531)
* Use image name without version as id.

* Review feedback
2016-06-15 16:14:51 +01:00
Simon Howe
05ce661c19 Gets go-tests passing! 2016-06-06 16:24:18 +02:00
Paul Bellamy
85aee27ef6 If k8s objects only have one container, show that container's metrics on them (#1473) 2016-06-04 08:03:51 +01:00
Tom Wilkie
5f995ae2f9 Propagate the pod counter from replicasets for deployments. 2016-05-19 13:41:52 +01:00
Paul Bellamy
5d8b1c003e Add pod status to summary table (#1523)
Had to shorten the title of # Containers, as it was being truncated.
2016-05-19 10:59:58 +01:00
Tom Wilkie
8f772a696d Add flag to disable reporting of processes (and procspied endpoints) 2016-05-17 17:29:09 +01:00
Tom Wilkie
4674d45c1a Don't merge in container image metadata into containers anymore. 2016-05-13 11:15:24 +01:00
Paul Bellamy
8cae3b0496 remove recursive children in MapX2Host, so container images don't also provide containers. (#1487) 2016-05-12 14:50:04 +01:00
Tom Wilkie
bbe56d854d Don't filter out Services etc which don't have pods - we don't do our filtering like that anymore. 2016-05-10 12:32:35 +02:00
Paul Bellamy
d0633d0d80 Render replica set and deployment parents 2016-05-09 09:19:11 +01:00
Paul Bellamy
541699d193 Review Feedback 2016-05-09 09:19:11 +01:00
Paul Bellamy
16a5c738d9 Deployment and ReplicaSet views for k8s 2016-05-09 09:03:57 +01:00
Paul Bellamy
0178babb0e Index services by UID, and refactor out common k8s metadata handling 2016-05-09 09:03:56 +01:00
Paul Bellamy
90f2f7f621 Merge pull request #1438 from weaveworks/1430-filter-kube-system-containers
Filter out docker containers for pods in the kube-system namespace
2016-05-06 13:57:05 +01:00
Tom Wilkie
b5cadf3a41 Make all filters drop unconnected pseudo nodes by default, and don't apply filter funcs to pseudo nodes. 2016-05-06 13:14:48 +01:00
Tom Wilkie
23156304af Filter out docker containers for pods in the kube-system namespace 2016-05-06 12:16:45 +01:00
Alfonso Acosta
1b7399d284 Minor test improvement 2016-05-05 19:19:20 +00:00
Alfonso Acosta
b5979df27f Fix comment 2016-05-05 19:39:25 +01:00
Alfonso Acosta
f34fc2a4df Merge pull request #1410 from weaveworks/1408-dnat-shortlived-connections
Correctly attribute DNAT-ed short-lived connections
2016-05-05 19:37:35 +01:00
Alfonso Acosta
5b2e0a6011 Add short-lived connection test 2016-05-05 17:04:55 +00:00
Tom Wilkie
55069609e1 Show Pod IP and # container in the children table in details panel. 2016-05-05 13:33:49 +01:00
Tom Wilkie
57618be932 Add a condition to rendering any kubernetes nodes at all 2016-05-03 17:05:44 +01:00
Tom Wilkie
9eaac25d69 Don't merge nodes in the rendering pipeline 2016-05-03 15:18:31 +01:00
Paul Bellamy
57bc6f7c90 Merge pull request #1386 from weaveworks/1340-k8s-filter-namespace
Filter by Kubernetes Namespaces
2016-05-03 13:48:22 +01:00
Paul Bellamy
0456df9d0a Merge branch 'master' of github.com:weaveworks/scope 2016-05-03 13:46:14 +01:00
Paul Bellamy
c40f29caf2 cleaning up old todo 2016-05-03 13:45:54 +01:00
Paul Bellamy
0e70f70ffd Review feedback 2016-05-03 12:49:02 +01:00
Paul Bellamy
4187ea2107 fixing up tests 2016-05-03 12:49:00 +01:00
Paul Bellamy
2af2b1f15a Filter by Kubernetes Namespaces 2016-05-03 12:47:24 +01:00
Tom Wilkie
1c5f0ac041 Don't attribute conntracked connections to k8s pause containers. 2016-05-03 12:04:08 +01:00
Tom Wilkie
8395c3ca4b Index Pods by UID and join with containers based on this. 2016-05-03 11:51:51 +01:00
Tom Wilkie
02554b1dcd Propagate network info for containers sharing network namespaces (#1401)
- Add armon/go-radix library, use this to find containers by prefix
- Deal with host net namespace in the same way
2016-04-29 18:13:55 +01:00
Paul Bellamy
a81b116672 Merge pull request #1409 from weaveworks/1396-pod-ip
Show Pod IP in details panel.
2016-04-29 14:49:39 +01:00
Tom Wilkie
e917dd61a8 Show Pod IP in details panel. 2016-04-29 13:34:31 +01:00
Tom Wilkie
b4a59f6e36 Don't recursively gets stats beyond an ApplyDecorators decorator 2016-04-29 12:06:33 +01:00
Tom Wilkie
9b5ac56214 Review feedback 2016-04-29 10:31:24 +01:00
Tom Wilkie
cb52acbc46 Add pod delete control
- Push shortcut reports when pods are created/deleted
- Buffer upto 2 reports instead of dropping them
2016-04-28 14:48:05 +01:00
Paul Bellamy
64450a4830 Merge pull request #1371 from weaveworks/1219-grouped-node-counts-2
Fixing grouped node count for filtered children nodes
2016-04-28 13:30:15 +01:00
Paul Bellamy
3d3aed2bb3 Fixing grouped node count for filtered children nodes
Squash of:

* We have to keep all the container hostnames until the end so we can
  count how many we've filtered

* Adding tests for ContainerHostnameRenderer and PodServiceRenderer with
  filters

* Because we filter on image name we need the image name before
  filtering

* Alternative approach to passing decorators.

* Refactor out some of the decorator capture

* Don't memoise decorated calls to Render

* Fixing filtered counts on containers topology

  Tricky, because we need the filters to be silent sometimes (when they're
  in the middle), but not when they're at the top, so we take the "top"
  filter's stats. However, this means we have to compose all
  user-specified filters into a single Filter layer, so we can get all
  stats.

  There are no more Silent filters, as all filters are silent (unless they
  are at the top).

  Additionally, I clarified some of the filters as their usage/terminology
  was inconsistent and confused. Now Filter(IsFoo, ...) *keeps* only nodes
  where IsFoo is true.
2016-04-28 12:23:43 +01:00
Paul Bellamy
3bfb8c4c85 Merge pull request #1356 from pidster/1355-add-swarm-to-system-containers
Add swarm-agent, swarm-agent master to sys container filters
2016-04-26 11:08:38 +01:00
pidster
0c2e9347d0 remove prefix slash 2016-04-25 14:54:09 +01:00
Paul Bellamy
a374ad334a Don't show container labels on container images
Images have their own labels. We can still use the container labels for
filtering, as the filters are "System Containers", not "System Images".
2016-04-25 10:32:33 +01:00
Paul Bellamy
fdaafd2208 Check counters on expected rendered topologies 2016-04-22 14:14:31 +01:00
Paul Bellamy
e7ebb83e23 Prune is only used in tests, so let's move it there 2016-04-22 14:14:30 +01:00