Commit Graph

5025 Commits

Author SHA1 Message Date
Matthias Radestock
e2a80cfa14 correct host cpu metric
The host CPU metric was reported as a percentage of all available CPUs,
but the limit was set to n_cpus * 100%. So on a 4-core machine the
graphs and metrics-on-canvas would never show more than 1/4th usage. Now
the limit is set to 100%.

Fixes #1664.
2016-08-25 16:14:42 +01:00
Matthias Radestock
b209d22e08 normalise container CPU metrics to 100%
The container CPU metric was reported in units of 100% = 1 CPU. So the
the ratio was correct, but since we don't show limits in most places it
is hard to interpret that figure. It also makes sorting by CPU usage
highly misleading. So now we normalise everything to 100%. That too can
be misleading, depending on what you are looking for, but it's generally
less surprising.
2016-08-25 16:13:36 +01:00
Alfonso Acosta
b56cc41527 Merge pull request #1821 from weaveworks/1698-make-shells-login
Use login shells in terminals
2016-08-25 15:04:11 +01:00
Tom Wilkie
e03000810f Merge pull request #36 from weaveworks/wcloud-service-flags
Add wcloud deploy --service flag
2016-08-25 11:00:02 +02:00
Tom Wilkie
9cbab402fb Add wcloud Makefile 2016-08-25 10:56:35 +02:00
Tom Wilkie
ef559010df Review feedback, and build wcloud in circle. 2016-08-25 10:46:53 +02:00
Tom Wilkie
3fe92f503c Add wcloud deploy --service flag 2016-08-25 09:51:58 +02:00
Paul Bellamy
3527b56b0b Merge pull request #34 from weaveworks/repo-branch
[wcloud] Add support for repo_branch option
2016-08-24 10:59:01 +01:00
Paul Bellamy
92cd0b84ad [wcloud] Add support for repo_branch option 2016-08-24 10:16:44 +01:00
Matthias Radestock
e8ebb31075 Merge pull request #1827 from weaveworks/parallel-merger
make smartMerger.Merge merge reports in parallel
2016-08-24 08:50:18 +01:00
Matthias Radestock
902ba88479 make smartMerger.Merge merge reports in parallel
for reduced latency
2016-08-24 08:02:23 +01:00
Alfonso Acosta
12a3300286 Fix integration tests 2016-08-23 16:29:00 +00:00
Alfonso Acosta
b7b64a7975 Use login shells in terminals 2016-08-22 17:42:38 +00:00
Tom Wilkie
32edfc9112 Don't reencode reports in the collector (#1819)
* Don't reencode reports in the collector

* Review feedback

* Fix comment

* Update alpine URLs so it will build

* Fix tests
2016-08-22 17:37:41 +01:00
Alfonso Acosta
4cb002e360 Merge pull request #1817 from weaveworks/release-0.17
Release 0.17.1
2016-08-19 15:04:36 +01:00
David Kaltschmidt
51bb6263bc Add support for table based controls
* if a node table has `controls` they will be rendered in a row
* controls need the to be of the same structure as node-level controls
* control errors are not shown
2016-08-18 22:28:01 +01:00
Alfonso Acosta
0f0c795416 Merge pull request #1816 from weaveworks/spelling-fixes
Fix spelling mistakes
2016-08-18 19:07:03 +01:00
Alfonso Acosta
cffcddf155 Update CHANGELOG v0.17.1 2016-08-18 18:02:40 +00:00
Alfonso Acosta
c10c58459b Fix spelling mistakes 2016-08-18 17:48:45 +00:00
Alfonso Acosta
8e5ff2a33b Merge pull request #1813 from weaveworks/1810-extend-k8s-client-flags
Extend kubernetes client flags to match kubectl
2016-08-18 18:23:55 +01:00
Alfonso Acosta
8c6747f560 Fix spelling mistake 2016-08-18 16:58:11 +00:00
Alfonso Acosta
f8a67a41f7 Elide sensitive kubernetes flags from the logs 2016-08-18 15:33:07 +00:00
Alfonso Acosta
9839b3d161 Log the API server host 2016-08-18 15:33:06 +00:00
Alfonso Acosta
47056bde16 Vendor the exact same version of mergo used by k8s
Merging is buggy in master: https://github.com/imdario/mergo/issues/33
2016-08-18 15:32:49 +00:00
Simon
5c27063c56 Merge pull request #1812 from weaveworks/1760-fixes-node-label-overlap
Fixes node label overlap
2016-08-18 16:09:59 +02:00
Simon Howe
e73440e9f1 Fixes top of node-blue-search-highlight from being chopped off.
- Increase line height so that it doesn't fall over the side of the
  container (which is overflow: hidden).
- Compensate for line-height increase w/ small label position tweak.
2016-08-18 14:50:37 +02:00
Alfonso Acosta
7435b4542c Fix typo 2016-08-18 11:11:30 +00:00
Tom Wilkie
38cc5aa29e On circle, report username as circle to wcould (#1815) 2016-08-18 12:06:49 +01:00
Tom Wilkie
9f760ab1fb Allow wcloud users to override username 2016-08-18 11:31:22 +01:00
Tom Wilkie
38037f8bf6 Merge pull request #33 from weaveworks/wcloud-templates
Support templates for commit messages and notifications in wcloud
2016-08-17 17:56:15 +01:00
Alfonso Acosta
1bdff95f33 Extend kubernetes client flags to match kubectl 2016-08-17 15:16:58 +00:00
Alfonso Acosta
e9235a56ba Vendor github.com/imdario/mergo
In order to use k8s.io/kubernetes/pkg/client/unversioned/clientcmd/client_config.go
2016-08-17 15:15:34 +00:00
Tom Wilkie
7acfbd7034 Propagate the local username 2016-08-17 15:11:04 +01:00
Tom Wilkie
e6876d1cec Add template fields to wcloud config. 2016-08-17 15:05:44 +01:00
Simon Howe
86101764b6 Tweak node/label-sizes to avoid overlap in certain layouts.
- Also permanently enables the label bg (previous was only on hover) to
  aid readibility w/ the (sometimes) smaller labels.
2016-08-17 16:03:47 +02:00
Jonathan Lange
f1bb537a19 Merge pull request #30 from weaveworks/mike/shell-lint/dont-error-if-empty
shell-lint: Don't fail if no shell scripts found
2016-08-17 14:34:06 +01:00
Jonathan Lange
e60f5dfc26 Merge pull request #31 from weaveworks/mike/fix-shell-lint-errors
integrations: Fix a shellcheck linter error
2016-08-17 14:30:30 +01:00
Mike Lang
e8e2b698e5 integrations: Fix a shellcheck linter error 2016-08-17 14:28:28 +01:00
Mike Lang
a781575611 shell-lint: Don't fail if no shell scripts found
This fixes the case where the provided paths do not contain any shell scripts,
ie. xargs is passed no values.
In this case by default, xargs invokes the command once with no args.
This causes shellcheck to print usage and exit failure.
The GNU-specific --no-run-if-empty changes the behaviour so that in this case,
shellcheck is simply never run.

This allows us to use this script as a general lint even in contexts where
no shell scripts are present, or none of the files passed are shell scripts.
2016-08-17 14:23:52 +01:00
Alfonso Acosta
250baa2524 Merge pull request #1811 from kinvolk/alessandro/fix-scope-stop-osx
Alessandro/fix scope stop osx
2016-08-17 13:14:43 +01:00
Alessandro Puccetti
5b67adc137 scope: fix stop command for OSX
Before this patch, `scope stop` was not stopping scope-app
2016-08-17 14:09:58 +02:00
Matthias Radestock
bdd97c7591 Merge pull request #1807 from weaveworks/1806-restore-probe-compatibility
restore compatibility of old probes with new m/t app

Fixes #1806.
2016-08-17 12:09:33 +01:00
Matthias Radestock
6ba812e82f restore compatibility of old probes with new m/t app
This got broken in #1682
2016-08-16 23:53:07 +01:00
Mike Lang
21cfc83a56 Use image-tag from build-tools (#1785)
* Squashed 'tools/' changes from e9e7e6b..db5efc0

db5efc0 Merge pull request #28 from weaveworks/mike/add-image-tag
5312c40 Import image-tag script into build tools so it can be shared
7e850f8 Fix logs path
dda9785 Update deploy api
f2f4e5b Fix the wcloud client
3925eb6 Merge pull request #27 from weaveworks/wcloud-events
77355b9 Lint
d9a1c6c Add wcloud events, update flags and error nicely when there is no config

git-subtree-dir: tools
git-subtree-split: db5efc0537

* Remove ./image-tag and use ./tools/image-tag instead

image-tag is now shared code from the build-tools repo
2016-08-16 15:52:12 +01:00
Alfonso Acosta
b3b160ceb0 Merge pull request #1791 from weaveworks/release-0.17
Release 0.17.0
2016-08-16 15:04:29 +01:00
Alfonso Acosta
fc4bdf0a14 Merge pull request #1798 from weaveworks/1683-start-stats-idempotent
Make stats gathering idempotent
v0.17.0
2016-08-16 14:16:22 +01:00
Alfonso Acosta
8b97f12ab1 Make stats gathering idempotent 2016-08-16 12:50:22 +00:00
Paul Bellamy
6e2fe78cab Merge pull request #1682 from kinvolk/krnowak/plugin-controls
RFC: forwarding control requests to plugins
2016-08-16 13:44:42 +01:00
Matthias Radestock
33d5d3768a Merge pull request #1796 from weaveworks/fix-report-store-chaining
fix report store query chaining

Fixes weaveworks/service#769
2016-08-16 08:30:27 +01:00
Matthias Radestock
e6a474ead7 fix report store query chaining
We fell victim to variable shadowing here. Each store would be fed the
original list of report keys, instead of only the ones that weren't
found in the previous store. So if a single report was missing from the
in-process cache, we would then fetch all reports from memcache. And if
that in turn was missing a single report we would fetch all reports from
S3.

We chain report stores for a reason - to reduce latency and, in case of
the in-process cache, eliminate decoding costs. So this bug has a huge
impact on query service performance.

To make matters worse, we return *all* the reports - now possibly in
triplicate. Fortunately, the SmartMerger filters these out, so at least
we were not incurring extra merge costs.
2016-08-16 00:55:39 +01:00