5943 Commits

Author SHA1 Message Date
Bryan Boreham
e907a51c36 Merge pull request #3787 from weaveworks/release-args-unquoted
Don't quote RELEASE_ARGS which may contain two arguments
2020-05-18 13:38:01 +01:00
Bryan Boreham
01804cb69d Merge pull request #3754 from CiMaol/dev/removeKubeletPort
Removed kubelet port flag. Node name now always need from env/flag
2020-05-18 12:27:06 +01:00
Bryan Boreham
1ad83e85de Warn user if probe is now reporting pods from every node. 2020-05-10 15:34:17 +00:00
Bryan Boreham
f0e43aa020 fix(probe): wait for ebpf tracker to stop on exit
We should have done this anyway, but I haven't noticed the error
previously. Possibly Go 1.14 is more aggressive about exiting when
some goroutines are still active.
2020-05-10 15:30:28 +00:00
Bryan Boreham
1a8dc90633 ui: update kind-of module to 6.0.3
We got a warning about a vulnerability in 6.0.2
2020-05-07 15:14:08 +00:00
Bryan Boreham
22aa742b58 build: upgrade Go to 1.14.2 2020-05-07 11:46:52 +00:00
Bryan Boreham
47519e41df Merge pull request #3784 from weaveworks/pipe-errors
Stop pipe operations after EOF
2020-05-07 12:28:51 +01:00
Bryan Boreham
24197bc71e fix (pipes): silence EOF error
This comes back when an operation like Kubernetes Describe finishes;
hide it so we don't print as an error.
2020-05-06 10:04:44 +00:00
Bryan Boreham
323aa46d1c fix (pipes): check websocket errors inside CopyToWebsocket()
Previously we were treating EOF on the reader as no-error, meaning
that operations like Kubernetes Describe would retry endlessly when
finished.
2020-05-06 10:04:40 +00:00
Bryan Boreham
7f0f13b083 Merge pull request #3782 from weaveworks/limit-topologies-on-collection
Upgrade reports before merging in multitenant collector
2020-04-17 11:24:14 +01:00
Bryan Boreham
fa4d1c4c2b Upgrade reports before merging
In case they came from an older or an overload probe.
2020-04-16 19:27:40 +00:00
Bryan Boreham
b772fa83b3 Add a metric for topologies dropped because they are over limit
Need to modify DropTopologiesOver() to report what it dropped, and
plumb through the userid so the metric can show who has a problem.
2020-04-16 19:27:28 +00:00
Bryan Boreham
24847e81c5 Merge pull request #3780 from weaveworks/merge-in-collector
Multitenant: merge incoming reports in collector
2020-04-15 19:08:39 +01:00
Bryan Boreham
b1fc59819a comment: clarify memcached error cases 2020-04-15 16:49:02 +00:00
Bryan Boreham
9a739fda46 Parallelise sending merged reports to store
Writes to DynamoDB and S3 can be done in parallel, which will reduce
the overall flush time.
2020-04-13 19:11:34 +00:00
Bryan Boreham
2629d13780 Add a histogram for flush times 2020-04-13 19:11:34 +00:00
Bryan Boreham
ccf031b8a9 enhancement(multitenant): merge incoming reports in a time window
This means we store fewer, bigger, reports, which reduces cost of
storage and time to render when data is viewed.
2020-04-13 19:11:34 +00:00
Bryan Boreham
104b9cba50 refactor: Call Close() on collector
Doesn't do anything at present, but will be used later.

Change the signature on BillingEmitter.Close() to match. Note we didn't use the error returned.
2020-04-13 19:11:34 +00:00
Bryan Boreham
777ff07e19 refactor(multitenant): break report storage code out into sub-functions
So the main Add() function isn't so long.
2020-04-13 19:11:34 +00:00
Bryan Boreham
0405a5983b Merge pull request #3781 from weaveworks/lock-rounding-map
fix(multitenant): move use of rounding map inside lock
2020-04-13 17:34:47 +01:00
Bryan Boreham
8c46367808 fix(multitenant): move use of rounding map inside lock 2020-04-13 16:16:20 +00:00
Bryan Boreham
5553e6ec80 Merge pull request #3779 from weaveworks/rounding
enhancement(multitenant): Track rounding error in billing calculation
2020-04-11 08:23:29 +01:00
Bryan Boreham
3f11352435 enhancement(multitenant): Track rounding error in billing calculation
Billing takes an integer number of seconds, so keep track of the
amount lost to rounding when the publish interval is not an integer.
2020-04-10 19:04:50 +00:00
Bryan Boreham
7a9c5142f5 Don't quote RELEASE_ARGS which may contain two arguments
If it is "--draft --pre-release" then we need to pass that unquoted so
it is seen as two arguments.
2020-04-10 17:39:47 +00:00
Bryan Boreham
6f05b09081 Merge pull request #3774 from weaveworks/probe-skip-empty-reports
fix (probe): skip publishing empty reports
2020-04-02 11:15:24 +01:00
Filip Barl
103b615084 Merge pull request #3777 from weaveworks/fbarl/change-contact-info
Change Filip's contact info
2020-03-31 17:14:50 +02:00
Filip Barl
1532ad2056 Change Filip's contact filip@weave.works -> filip.barl@gmail.com 2020-03-31 16:50:25 +02:00
Daniel Holbach
c3d5861970 Merge pull request #3776 from weaveworks/security-update
security(js-dependency) update html-webpack-plugin to most recent stable
2020-03-30 17:20:00 +02:00
Daniel Holbach
8e51bbaba7 security(js-dependency) update html-webpack-plugin to most recent stable 2020-03-30 12:32:09 +02:00
Bryan Boreham
8368c5ae2c Merge pull request #3775 from weaveworks/revert-6b72246f
Revert #3773 - change to use report timestamp
2020-03-28 14:52:16 +00:00
Bryan Boreham
c784acc20d Revert change to use report timestamp
This reverts commit 6b72246fe6.

The app merges reports within a 15-second window of its own time, so
if one or more probes have a time that is several seconds different
they will get excluded from the window.
2020-03-28 13:58:34 +00:00
Bryan Boreham
d227b2528d Merge pull request #3773 from weaveworks/consistent-app-timestamps
fix (multitenant collector): Use consistent report timestamp
2020-03-27 10:09:23 +00:00
Bryan Boreham
951d7a1412 fix (probe): skip publishing empty reports
If the probe is configured with `spy.interval` greater than
`publish.interval`, the report to be published can be completely
blank.  In that case, skip publishing it so the next time we do have
some data the time-window is correct.
2020-03-27 09:59:09 +00:00
Bryan Boreham
6b72246fe6 fix (multitenant collector): Use consistent report timestamp
Previously the code called `time.Now()` in two different places so the
timestamps didn't match. Now we use the timestamp of the report itself.

Add the collector's local time to the report if it didn't have one.
2020-03-26 19:15:34 +00:00
Bryan Boreham
54267b769c Merge pull request #3772 from weaveworks/downgrade-fluent-lib
dependencies: downgrade fluent-logger-golang library used in multitenant mode
2020-03-26 19:04:08 +00:00
Bryan Boreham
697116cb0d Downgrade fluent-logger-golang library.
The later version silently drops all data if it cannot connect.
https://github.com/fluent/fluent-logger-golang/issues/80
2020-03-26 17:57:25 +00:00
Daniel Holbach
b3f212755b Merge pull request #3770 from dholbach/fix-broken-links
fix two broken links
2020-03-25 11:42:20 +01:00
Daniel Holbach
5942b7a89c fix two broken links 2020-03-24 16:11:45 +01:00
Bryan Boreham
7c838affaa Release 1.13.0 1.13.0 2020-03-23 15:04:50 +00:00
Bryan Boreham
b2d98dc1f7 Add doc files so 'go clean' can run
If the directories are empty then go modules tries to download them.
2020-03-23 15:04:50 +00:00
Bryan Boreham
3327ca06df Merge pull request #3768 from weaveworks/alpine-3-11-3
Update alpine base image to 3.11.3
2020-03-23 15:02:15 +00:00
Bryan Boreham
d81ccf7466 Update alpine base image to 3.11.3
Note I'm pinning the minor version here, otherwise it can vary
depending on what's on your machine when you build.
2020-03-23 12:56:43 +00:00
Bryan Boreham
1c0ea8cbc6 Merge pull request #3766 from weaveworks/go-1-13-9
Update Go to 1.13.9
2020-03-20 14:29:02 +00:00
Filip Barl
a9a0cdcd57 Merge pull request #3765 from weaveworks/3763-remove-unused-js-deps
Remove unused JS deps from package.json
2020-03-20 15:15:52 +01:00
Bryan Boreham
265e262a65 Update Go to 1.13.9 2020-03-20 14:04:30 +00:00
Filip Barl
3fbc1a9ec5 Remove unused JS deps from package.json 2020-03-20 14:53:13 +01:00
Bryan Boreham
49db8f66cd Merge pull request #3763 from weaveworks/yarn-update
security: update JS dependencies which have notified vulnerabilities
2020-03-20 12:22:49 +00:00
Bryan Boreham
c37e21ed14 security(js-dependency): update minimist to 1.2.2 2020-03-19 12:25:39 +00:00
Bryan Boreham
20227f2cd0 security(js-dependency): update acorn to 7.1.1 2020-03-19 12:25:39 +00:00
Bryan Boreham
c6ec844711 security(js-dependency): update set-value to 2.0.1 2020-03-19 12:25:16 +00:00