Commit Graph
2832 Commits
Author SHA1 Message Date
SimonandGitHub 8462819a12 Merge pull request #1877 from weaveworks/1794-fixes-left-alignment-number-cols
Fixes left alignment of numbers in the details panel tables
2016-09-22 16:59:10 +02:00
Simon Howe 685a895dd5 gofmt the go 2016-09-22 16:05:37 +02:00
Simon Howe fe1ba9cc4d Tidying up connectionrow.dataType
- Rename DataType -> Datatype for consisitency
- Remove Datatype from connection.metadata
- Change UI to read dataType from connection.columns rather than from
  connection.metadata (col header rather than "cell")
2016-09-22 15:36:36 +02:00
Simon Howe ac741a034e Fixes tests after numberifying columns 2016-09-21 16:38:01 +02:00
Simon Howe 7c4654d45c Fixes left alignment of numbers in the details panel tables
- By declaring more things to be numbers
- Also fixes initial sort direction of number columns from asc to desc.
2016-09-21 16:18:26 +02:00
SimonandGitHub 2db892fd53 Merge pull request #1874 from weaveworks/1862-fix-ip-truncation-in-conn-table
Fix ip column width in connections table, avoid truncating long ips
2016-09-21 16:16:14 +02:00
Simon Howe 517110ba09 Keep "count" as tooltip for new mini "#" column header 2016-09-21 15:24:59 +02:00
Simon Howe 52362496b3 Rename connections."Count" => "#", flex remote column 2016-09-21 15:13:01 +02:00
Paul BellamyandGitHub ce21bac7d3 Merge pull request #1873 from kinvolk/alessandro/http-plugin-fix
plugins/http-requests: change plugin id
2016-09-21 12:43:37 +01:00
Simon Howe fc3fc72205 Fix ip column width in connections table, avoid truncating long ips 2016-09-21 10:01:42 +02:00
Alfonso AcostaandGitHub c64dfa6f55 Merge pull request #1863 from weaveworks/1082-nodes-for-known-services
Add pseudo-nodes for known services
2016-09-20 23:00:52 +02:00
Alfonso Acosta c5ac315b38 Review feedback 2016-09-20 16:50:29 +00:00
Alessandro Puccetti 22ad25b312 plugins/http-requests: change plugin id
Change the ID from `http_requests` to `http-requests`.
The new plugin ID convention does not allow `_`.
2016-09-19 18:08:20 +02:00
Matthias RadestockandGitHub d00891937a Merge pull request #1875 from weaveworks/1713-show-internet-connections
show more details of a node's internet connections

Fixes #1713.
2016-09-19 16:37:25 +01:00
Alfonso Acosta 193bfec50b Exclude ec2 since it's too generic 2016-09-19 14:45:22 +00:00
Alfonso Acosta f5ad6a8e97 Minor fixes/refinements 2016-09-19 14:38:59 +00:00
Alfonso Acosta 028ed32b6f Simplify service node matching 2016-09-19 14:38:59 +00:00
Alfonso Acosta 0223b0b385 Implement DNS snooper 2016-09-19 14:38:59 +00:00
Alfonso Acosta 5c080ec062 Add pseudo-nodes for known services
AWS S3 and Dynamo to start with
2016-09-19 14:38:58 +00:00
Matthias Radestock c455f048e2 comment on arbitrariness of displayed dns name 2016-09-19 15:31:26 +01:00
Matthias Radestock bcf21b1966 show more details of a node's internet connections
in the details panel, instead of showing connections to/from the
internet as "TheInternet <port>", we now show "<dns-name>(<ip_addr>)
<port>" (or just "<ip_addr> <port>" if we don't have a dns name).

Fixes #1713.
2016-09-19 14:10:35 +01:00
Matthias RadestockandGitHub 7b0f0cb158 Merge pull request #1868 from weaveworks/1867-inbound-internet-connections-counts
fix inbound internet connections counts

Fixes #1867.
2016-09-19 11:55:36 +01:00
DavidandGitHub 93e03539d8 Merge pull request #1853 from weaveworks/localstorage-viewstate
Add localstorage support for saving view state
2016-09-19 12:19:19 +02:00
Matthias Radestock 591e72e702 fix unit tests 2016-09-19 11:15:00 +01:00
Matthias Radestock 463681dcdd refactor: inline 2016-09-15 16:04:44 +01:00
Matthias Radestock 0e1aeec6ae key internet node connection counts differently
Instead of including the localEndpointID in the key, use the
address, so the port is excluded. That way we don't end up with multiple
rows for inbound connections from the same internet address.

We also augment the address with the DNS info here, which saves us from
having to look it up later on.

Fixes #1867
2016-09-15 15:23:12 +01:00
Matthias Radestock e009548ace refactor: shrink connection count key
- remoteAddr was never being set
- localAddr is part of the localNodeID in all the cases it was set, so
  it effectively was part of the key twice
2016-09-15 11:45:16 +01:00
Matthias Radestock 94cd73c72b tiny simplifying refactor 2016-09-14 12:19:09 +01:00
Matthias RadestockandGitHub 1d8fc6620e Merge pull request #1860 from weaveworks/1842-dedup-connections-2
in details panel, count connections only once

Fixes #1842
2016-09-14 10:04:44 +01:00
Matthias Radestock 69735217ac pick a unique destination endpoint for each connection 2016-09-14 09:13:21 +01:00
Matthias Radestock 58b22f0710 in details panel, count connections only once
Fixes #1842
2016-09-14 09:12:51 +01:00
Jonathan LangeandGitHub 801c419c89 Merge pull request #1858 from kinvolk/alessandro/tcd-circleci
circleci: push traffic control plugin image to docker hub
2016-09-13 15:35:36 +02:00
Tom WilkieandGitHub d1cf9f60fc Upgrade to go1.7 (#1797)
* Upgrade to go1.7

* Use the 1.7.1 tag
2016-09-13 12:40:33 +01:00
Alfonso AcostaandGitHub b89dab0384 Merge pull request #1859 from weaveworks/bump-docs-scope-version
Update Scope version in documentation
2016-09-13 01:00:30 +02:00
Alfonso Acosta 216b53efd9 Update Scope version in documentation 2016-09-12 21:34:06 +00:00
Alessandro Puccetti 66390c8b0e circleci: push traffic control plugin image to docker hub
After this patch, circleci builds the traffic control plugin image and
pushes it on docker hub. Rename traffic control plugin docker image
to "weaveworks/scope-traffic-control-plugin".
2016-09-12 15:47:28 +02:00
Mike LangandGitHub 8f8c0f2204 Merge pull request #1839 from weaveworks/mike/app/graceful-shutdown
Gracefully shutdown app, letting active http requests finish with timeout
2016-09-09 15:06:23 -07:00
Matthias RadestockandGitHub 4edab4bfcb Merge pull request #1855 from weaveworks/extract-pluralize
refactor: extract pluralization
2016-09-09 21:42:49 +01:00
Matthias Radestock bb4007e3cb refactor: extract a couple of map "constants" 2016-09-09 17:35:37 +01:00
Matthias Radestock 26cb5d53fc refactor: extract pluralization function
This preserves the existing behaviour of showing count=0 as a plural
rather than empty. However, I rather suspect we cannot actually
encounter that case in the current code.

In the "no count found" case we now *set* the base.LabelMinor to empty
instead of leaving it alone. This is ok since it is empty to begin with.
2016-09-09 17:35:33 +01:00
Matthias Radestock 7f7766425e refactor: dedup pod group summary functions 2016-09-09 17:33:14 +01:00
Paul BellamyandGitHub d5c3e30f31 Merge pull request #1837 from kinvolk/alessandro/tcd-status
Traffic Control plugin: first iteration
2016-09-09 15:36:06 +01:00
Alessandro Puccetti f2c2ce9d33 plugins/traffic-control/docker: integrate loopIteration() into Start()
Move `loopIteration()` code in an anonymous function inside `Start()`.
2016-09-09 13:57:21 +02:00
Alessandro Puccetti 10d33fb24f plugins/traffic-control: fix output for getStatus()
If `tc qdisc show dev eth0` returns an error, then output is set to empty string.
2016-09-09 13:57:21 +02:00
Alessandro Puccetti deea4d9af1 plugins/traffic-contorl: fix error message in getNSID
Return error message that show what fails and why.
2016-09-09 13:57:21 +02:00
Alessandro Puccetti 097225332a plugins/traffic-control: switch to http.ServeMux
It is nicer to instantiate a http.ServeMux, instead of modifying
the global http handler.
2016-09-09 13:57:21 +02:00
Alessandro Puccetti 3bd6e4c88d plugins/traffic-control: fix Makefile 2016-09-09 13:14:24 +02:00
Alessandro Puccetti c722edf534 plugins/traffic-control: export trafficControlStatus
Rename trafficControlStatus to TrafficControlStatus, because lint complains.
2016-09-09 13:14:24 +02:00
Alessandro Puccetti 01b6bc5be6 plugins/traffic-contorl: split DoTrafficControl()
For clearer code `DoTrafficControl()` is splitted in multiple functions.
2016-09-09 13:14:24 +02:00
Alessandro Puccetti f6708503f0 plugins/traffic-control: add helper functions to trafficControlStatus
SetLatency and SetPacketLoss handle the empty value that is represented by "-".
2016-09-09 13:14:24 +02:00