Commit Graph

5237 Commits

Author SHA1 Message Date
Bryan Boreham
95ce2cb1a8 Add build constraint on Linux-only features
Split Reporter into Linux and non-Linux parts, and stubbed it out for
non-Linux targets.
2018-11-14 15:34:58 +00:00
Bryan Boreham
01ef6a104d Eliminate connectionTrackerConfig struct 2018-11-14 15:34:58 +00:00
Bryan Boreham
e3d42676a3 Add back some parts of the original cli code 2018-11-14 15:34:58 +00:00
Bryan Boreham
71c59e87d1 Update comment 2018-11-14 15:34:58 +00:00
Bryan Boreham
f4dc368955 Don't buffer TIME_WAIT flows on conntrack start-up
When the probe first starts we should only be interested in active
connections, and if the loop re-starts it's probably because too many
connections are opening and closing to keep up with, so it's good to
drop any that are already closed then too.

Refactor the code so `handleFlow` is only called on events, and handle
the initial list of connections directly.
2018-11-14 15:34:58 +00:00
Bryan Boreham
c627802664 Refactor: remove some code that is now unnecessary
- don't need another wrapper round `conntrack.Connections()`
- logPipe() was only for the command-line conntrack
- nobody closes the `event` chan now, so no need to pre-check for quit
2018-11-14 15:34:58 +00:00
Bryan Boreham
a29e9fa27a Update to match upstream conntrack library 2018-11-14 15:34:57 +00:00
Bryan Boreham
5420692a39 Vendor github.com/typetypetype/conntrack 2018-11-14 15:34:57 +00:00
Bryan Boreham
b9405bcc4b Remove our own copy of the upstream library 2018-11-14 15:34:57 +00:00
Bryan Boreham
73f35fd6d9 Handle nat status from conntrack via netlink
Replacement for the --any-nat command-line parameter
2018-11-14 15:34:57 +00:00
Bryan Boreham
ed6a010330 Decode conntrack status from netlink 2018-11-14 15:34:57 +00:00
Bryan Boreham
3314e1f0c7 Move constants to headers.go to be more like upstream 2018-11-14 15:34:57 +00:00
Bryan Boreham
7a68b5bdb0 Use Nfgenmsg from unix package instead of declaring locally 2018-11-14 15:34:57 +00:00
Bryan Boreham
8b04ef7359 Move conntrack code out to client.go to match upstream 2018-11-14 15:34:57 +00:00
Joseph Glanville
ac63937df7 Switch to new conntrack library 2018-11-14 15:34:57 +00:00
Joseph Glanville
853196f6d1 Import conntrack library 2018-11-14 15:34:57 +00:00
Bryan Boreham
e55086a5d3 Merge pull request #3429 from weaveworks/ruby-version-236
Update Ruby version to 2.3.6, to match Weaveworks website
2018-11-14 15:34:43 +00:00
Bryan Boreham
d5bda52f70 Update Ruby version to 2.3.6, to match Weaveworks website
The version mismatch is causing errors on Netlify preview.
2018-11-14 11:07:09 +00:00
Bryan Boreham
4ac9d1f946 Merge pull request #3420 from weaveworks/add-maintainer-filip
Add Filip Barl as maintainer
2018-11-13 16:05:53 +00:00
Simon
730d5e3b62 Merge pull request #3425 from weaveworks/revert-3422-upgrade-font-awesome-5
Revert "Upgrade to Font Awesome 5"
2018-11-12 11:36:24 +01:00
Simon
e78f8a8de4 Revert "Upgrade to Font Awesome 5" 2018-11-12 11:22:19 +01:00
Bryan Boreham
73de9c3f03 Merge pull request #3422 from weaveworks/upgrade-font-awesome-5
Upgrade to Font Awesome 5
2018-11-12 10:02:47 +00:00
Bryan Boreham
6356f5c118 Merge pull request #3392 from gotjosh/add-tests-to-probe-cri
Fix intention of support for fallback protocol and add tests for probe/cri/registry
2018-11-12 10:01:30 +00:00
Bryan Boreham
fb0359ccd9 Merge pull request #3424 from ScottBrenner/patch-1
Update introducing.md
2018-11-12 10:00:11 +00:00
Scott Brenner
5d71a9ff5b Update introducing.md
Grammar fix.
2018-11-09 16:15:48 -08:00
Scott Brenner
a9e2d37691 Update introducing.md
Typo fix.
2018-11-09 16:09:49 -08:00
Simon Howe
2cc58f5b00 Switch to fa5 icons and tweak font-sizes a bit 2018-11-09 14:59:53 +01:00
Bryan Boreham
aac7356e31 Merge pull request #3421 from weaveworks/eks-pause
Add EKS to paused container detection
2018-11-09 12:48:42 +00:00
Simon Howe
52fc460f8e Load up fa5 instead of 4 2018-11-09 13:41:37 +01:00
Stefan Prodan
717cb13a84 Add EKS to paused container detection
fix #3259
2018-11-09 13:48:11 +02:00
Bryan Boreham
2f71852297 Add Filip Barl as maintainer 2018-11-07 14:34:12 +00:00
Bryan Boreham
62d55596c6 Merge pull request #3393 from ycao56/basic-auth
Add http Basic Auth
2018-11-07 14:32:03 +00:00
Bryan Boreham
a5d29a9a58 Merge pull request #3411 from gruebel/master
Clean up Dockerfiles
2018-11-06 08:44:03 +00:00
Bryan Boreham
5798d049df Merge pull request #3419 from weaveworks/disable-reporting-k8s-cluster
Disable host and endpoint reporting in Kubernetes cluster mode
2018-11-06 08:39:49 +00:00
Bryan Boreham
71972c302a Disable host and endpoint reporting in Kubernetes cluster mode
When the probe is run with --probe.kubernetes.role=cluster, disable
host reporting and endpoint reporting since it duplicates what is
being done by the per-host probe.
2018-11-05 21:59:29 +00:00
Yu Cao
308f923e48 use github.com/goji/httpauth instead 2018-11-01 17:51:24 -04:00
gotjosh
fbb027752f Refactor if/else into a switch statement
Also, extracts strings into constants
2018-11-01 20:42:27 +00:00
gotjosh
3faf109b8f Fix intention of support for endpoints without protocols
When we receive an endpoint address without a protocol, our code states we
don't support them and that the format is deprecated.

In reality it was not the case, e.g:

When we received an address in the form of `127.0.0.1`, we'd attempt to
parse the scheme from it, we'd realise is does have one (would be
equivalent to "") and our function `parseEndpoint` would return `"", "", fmt.Error`.

Then, our `parseEndpointWithFallbackProtocol` would use the
fallback protocol (unix) and attempt to connect to `unix://127.0.0.1`.

This meant two things:

1. The error returned from `parseEndpoint` would never be thrown
2. We would connect anyways since the address is valid

This commit changes the assertion logic to match the intention of using
a fallback protocol when one is not supplied.
2018-11-01 20:21:54 +00:00
gotjosh
beeb27810c Add tests for probe/cri/registry
Unhappy path tests try to cover three scenarios:

- When the endpoint URL scheme is not explicitly supported e.g. HTTP
- When the endpoint URL scheme is TCP which is also not supported
- When the fail to parse the given URL (to extract the scheme)

The happy path covers two scenarios:

- When we specify the supported scheme in the URL which is an unix
socket e.g. unix///var/run/dockershim.sock
- When we pass a socket address but fail to specify the scheme but our registry attempts
to use the fallback protocol e.g. var/run/dockershim.sock
2018-11-01 20:17:03 +00:00
Bryan Boreham
ee0ce7b087 Merge pull request #3384 from weaveworks/drop-big-topologies
In multitenant app, drop all nodes for big topologies
2018-11-01 17:21:55 +00:00
Bryan Boreham
c70c90d2a7 Merge pull request #3405 from akshatnitd/add-license-readme
Add  LICENSE info to README.md
2018-10-31 15:18:26 +00:00
Akshat Garg
ea7742659a Add LICENSE info to README.md 2018-10-31 09:35:37 +05:30
Bryan Boreham
ef836248c6 Merge pull request #3415 from gfeun/patch-1
Fix typo
2018-10-30 16:35:46 +00:00
Bryan Boreham
2e87b02116 Merge pull request #3396 from ltachet/dead-container-msg
client: update stopped container message
2018-10-30 16:30:37 +00:00
gfeun
725632989c Fix typo
Fix sentence meaning according to [https://github.com/weaveworks-plugins/scope-http-statistics plugin page:  "it has a negligible performance toll"
2018-10-29 15:07:16 +01:00
Bryan Boreham
e0e73e4ae8 Merge pull request #3395 from dholbach/update-docs-links
update help section
2018-10-29 12:27:18 +00:00
Bryan Boreham
01e50a11c0 Merge pull request #3397 from weaveworks/satyam-maintainer
Add Satyam Zode as maintainer
2018-10-29 12:26:03 +00:00
Lucille Tachet
bb428b819b client: fix renderNotAvailable message 2018-10-28 17:01:02 +01:00
gruebel
27a8bf1008 Clean up Dockerfiles 2018-10-27 17:24:00 +02: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