Commit Graph

5071 Commits

Author SHA1 Message Date
Bryan Boreham
4e08ea0869 Merge pull request #3325 from weaveworks/trace-context-detect
Add middleware to detect jaeger trace context over HTTP
2018-08-28 14:32:31 +01:00
Marcus Cobden
67b887cb5d Add middleware to detect trace context on HTTP 2018-08-28 13:32:29 +01:00
Marcus Cobden
6f17a2961c Update weaveworks/common to d442d08d89b51712ca61de3f7c14e2e218a739d7
Changes:
- Default diff-printer to hide details (#103) - da4c3ff
- Improve logging of http errors (#115) - f5a1710
- Update httpgrpc to match weaveworks/cortex#910 (#117) - 80ff076
- Expose the HTTP server from the server struct. (#118) - 1a7a6b3
- Add HTTP tracing middleware (#119) - d442d08
2018-08-28 11:35:54 +01:00
Bryan Boreham
2215e66d39 Merge pull request #3335 from weaveworks/simplify-addrs
Simplify fetch of IP addresses in a namespace
2018-08-27 22:46:20 +01:00
Bryan Boreham
75d0893351 Merge pull request #3286 from dholbach/licenses-fix
license: document files under LGPL3 and MPL3 licenses
2018-08-27 22:41:45 +01:00
Bryan Boreham
ef832eb128 Simplify fetch of all IP addresses
Code was unnecessarily fetching all links then fetching all addresses
filtered by link, when we can just get the addresses without any
filter.
2018-08-27 17:10:43 +00:00
Bryan Boreham
5634e8c07e Merge pull request #3332 from weaveworks/fix-ebpf
Create bpf stop file differently, in integration test
2018-08-25 11:35:31 +01:00
Bryan Boreham
efd4bbd5be Create bpf stop file differently
Somehow the /proc/pid/root thing is not creating a file that can be
seen inside the container any more.
2018-08-25 09:53:55 +00:00
Bryan Boreham
c1b1ee2a1b Merge pull request #3266 from weaveworks/slim-metrics
Remove First and Last data members from Metrics structs
2018-08-24 17:39:21 +01:00
Daniel Holbach
03803c8ee6 license: document files under LGPL3 and MPL3 licenses 2018-08-24 18:02:04 +02:00
Bryan Boreham
eb3a2feabb Merge pull request #3329 from satyamz/client-go-upgrade
Upgrade Kubernetes client-go version to 8.0.0
2018-08-24 16:30:01 +01:00
Bryan Boreham
321c5709b9 Merge pull request #3231 from meghalidhoble/master
[Power Support] Enable weaveworks scope on Power.
2018-08-24 15:27:57 +01:00
Satyam Zode
fd01143725 Upgrade client-go version to 8.0.0
This will
Add:
	- golang.org/x/time
upgrade:
        - k8s.io/client-go v8.0.0
	- k8s.io/api version to kubernetes-1.11.0
	- k8s.io/apimachinery version to kubernetes-1.11.0
	- github.com/json-iterator/go version to latest because `https://github.com/kubernetes/kubernetes/issues/64612`
delete:
	- vendor/github.com/juju/ratelimit because k8s-client-go is shifted to golang.org/x/time
	  Please refer: acc52496ce

```
gvt delete k8s.io/client-go
gvt delete k8s.io/api
gvt delete k8s.io/apimachinery
gvt delete github.com/json-iterator/go
gvt delete github.com/juju/ratelimit

gvt fetch --no-recurse -tag v8.0.0 k8s.io/client-go
gvt fetch --no-recurse -tag kubernetes-1.11.0 k8s.io/api
gvt fetch --no-recurse -tag kubernetes-1.11.0 k8s.io/apimachinery
gvt fetch github.com/json-iterator/go
gvt fetch golang.org/x/time
```

fixes: #3284

Signed-off-by: Satyam Zode <satyamzode@gmail.com>
2018-08-24 19:05:36 +05:30
Guy Edwards
1eab1d53a7 Merge pull request #3324 from weaveworks/sheet-storage-node-name-compat
support `storagesheet` for old scope reports
2018-08-23 16:53:47 +01:00
guyfedwards
ebd6376bd4 support storagesheet for old scope reports
Old versions of scope reports use `storagesheet` as the value for node
shape. This shape is no longer supported in weaveworks-ui-components and
so this commit normalises to `sheet` for compatiblity with old reports.

related #3322
2018-08-22 15:33:34 +01:00
Guy Edwards
34316376d5 Merge pull request #3323 from weaveworks/sheet-storage-node-name
rename 'storagesheet' to 'sheet'
2018-08-22 15:08:49 +01:00
guyfedwards
a38b6213d1 rename storagesheet to sheet
the client now expects a node shape of `sheet` not `storagesheet`
update report.go to reflect this.

fixes #3322
2018-08-22 13:07:45 +01:00
Bryan Boreham
143738275c Merge pull request #3317 from dholbach/fix-3283
vendor: update gopkg.in/yaml.v2 to latest upstream
2018-08-20 15:37:24 +01:00
Daniel Holbach
56f7db1821 vendor: update gopkg.in/yaml.v2 to latest upstream
yaml.v2 was relicensed under Apache 2.0 in 2016, as Scope is
  Apache 2.0, we want this too. A lot of other bugs were fixed
  in the code since then as well.

  fixes #3283
2018-08-14 15:08:15 +02:00
Filip Barl
49d8ca9242 Merge pull request #3315 from weaveworks/fix-update-storage-state
Update localStorage with Scope state also on initial router hook
2018-08-14 14:12:30 +02:00
Filip Barl
af99a95100 Update localStorage with Scope state also on initial router hook. 2018-08-13 17:56:16 +02:00
meghalidhoble
625998b91e Change made to the listed files, to enable weaveworks-scope on Power(ppc64le)
1)backend/Dockerfile 2) probe/endpoint/dns_snooper.go
3) client/Dockerfile 4) docker/Dockerfile.cloud-agent
5) probe/process/walker_linux_test.go & 6) tools/lint

1)'backend/Dockerfile' : Conditional added so that the cross-compiling should
   be done on amd64. Also removed support for sh-lint for ppc64le for now.
   As the version for shfmt mentioned in the dockerfile is not available for
   ppc64le and the later version does't work fine with existing application.
2)'probe/endpoint/dns_snooper.go' : Renamed this file so as to reuse for ppc64le
   and added a build-constraint. Now this file will be build for amd64 on linux
   and ppc64le on linux.
3)'client/Dockerfile' : Modified the version of the base image for node from
   8.4.0 to 8.11, as this version supports multiarch.
4)'docker/Dockerfile.cloud-agent' : Modified the version of the base image for
   golang from 1.10.2-strech to 1.10.2, which supports multiarch.
5) 'probe/process/walker_linux_test.go' : Test fixed to run for ppc64le,
    modified the code to accept RSSBytes based on pageSize value per
    architecture, instead of hard-coded values.
6)'tools/lint' : Modified the file to skip the sh-lint implementation for ppc64le.

PR #3231
2018-08-13 12:45:25 +05:30
Bryan Boreham
57a7e55355 Merge pull request #3312 from weaveworks/tools-update
Update the 'tools' subdirectory
2018-08-10 17:03:30 +01:00
Bryan Boreham
80b66472a5 Pin Python requests library to 2.19.1
The latest version as of the time of this commit.
2018-08-10 13:34:11 +00:00
Bryan Boreham
7f0334d07b Fix typo in comment 2018-08-10 13:11:55 +00:00
Bryan Boreham
1e5cdc4210 Merge commit '7f4bab626e5544d14293f2ab79b2b0642125476a' 2018-08-10 12:31:52 +00:00
Bryan Boreham
7f4bab626e Squashed 'tools/' changes from 74dc626b..2bbc9a08
2bbc9a08 Merge pull request #140 from weaveworks/sched-http-retry
c3726dea Add retries to sched util http calls
2cc7b5ac Merge pull request #139 from meghalidhoble/master
fd9b0a72 Change : Modified the lint tools to skip the shfmt check if not installed. Why the change : For ppc64le the specific version of shfmt is not available, hence skipped completely the installation of shfmt tool. Thus this change made.
bc645c70 Merge pull request #138 from dholbach/add-license-file
a642e022 license: add Apache 2.0 license text
9bf59568 Merge pull request #109 from hallum/master
d971d821 Merge pull request #134 from weaveworks/2018-07-03-gcloud-regepx
32e7aa2d Merge pull request #137 from weaveworks/gcp-fw-allow-kube-apiserver
bbb6735e Allow CI to access k8s API server on GCP instances
764d46ca Merge pull request #135 from weaveworks/2018-07-04-docker-ansible-playbook
ecc2a4e3 Merge pull request #136 from weaveworks/2018-07-05-gcp-private-ips
209b7fb6 tools: Add private_ips to the terraform output
369a655f tools: Add an ansible playbook that just installs docker
a643e270 tools: Use --filter instead of --regexp with gcloud
b8eca887 Merge pull request #128 from weaveworks/actually-say-whats-wrong
379ce2bb Merge pull request #133 from weaveworks/fix-decrypt
3b906b54 Fix incompatibility with recent versions of OpenSSL
f091ab43 Merge pull request #132 from weaveworks/add-opencontainers-labels-to-dockerfiles
248def1b Inject git revision in Dockerfiles
64f2c280 Add org.opencontainers.image.* labels to Dockerfiles
ea96d8ed add information about how to get help (#129)
f066ccdd Make yapf diff failure look like an error
34d81d70 Merge pull request #127 from weaveworks/golang-1.10.0-stretch
89a0b4f8 Use golang:1.10.0-stretch image.
ca69607f Merge pull request #126 from weaveworks/disable-apt-daily-test
f5dc5d54 Create "setup-apt" role
7fab4413 Rename bazel to bazel-rules (#125)
ccc83168 Revert "Gocyclo should return error code if issues detected" (#124)
1fe184f1 Bazel rules for building gogo protobufs (#123)
b917bb89 Merge pull request #122 from weaveworks/fix-scope-gc
c029ce01 Add regex to match scope VMs
0d4824b1 Merge pull request #121 from weaveworks/provisioning-readme-terraform
5a82d64c Move terraform instructions to tf section
d285d78d Merge pull request #120 from weaveworks/gocyclo-return-value
76b94a47 Do not spawn subshell when reading cyclo output
93b3c0d5 Use golang:1.9.2-stretch image
d40728f6 Gocyclo should return error code if issues detected
c4ac1c3f Merge pull request #114 from weaveworks/tune-spell-check
89806560 Only check files
12ebc73a Don't spell-check pki files
578904ab Special-case spell-check the same way we do code checks
e772ed59 Special-case on mime type and extension using just patterns
ae82b50c Merge pull request #117 from weaveworks/test-verbose
89434738 Propagate verbose flag to 'go test'.
7c79b43c Merge pull request #113 from weaveworks/update-shfmt-instructions
258ef015 Merge pull request #115 from weaveworks/extra-linting
e690202b Use tools in built image to lint itself
126eb561 Add shellcheck to bring linting in line with scope
63ad68f0 Don't run lint on files under .git
51d908a3 Update shfmt instructions
e91cb0d3 Merge pull request #112 from weaveworks/add-python-lint-tools
0c87554d Add yapf and flake8 to golang build image
35679ee5 Merge pull request #110 from weaveworks/parallel-push-errors
3ae41b6f Remove unneeded if block
51ff31a5 Exit on first error
0faad9f7 Check for errors when pushing images in parallel
d87cd026 Add arg flag override for destination socks host:port in pacfile.

git-subtree-dir: tools
git-subtree-split: 2bbc9a08a7f672eae62cfe110d7f536c6cc53ce3
2018-08-10 12:31:52 +00:00
Bryan Boreham
edf5fa3c82 Merge pull request #3311 from weaveworks/undo-tools-changes
Undo changes made in the 'tools' subtree
2018-08-10 13:30:56 +01:00
Bryan Boreham
cfc460270a Undo changes made in the 'tools' subtree
This is vendor'd in from weaveworks/build-tools so must not be changed
here.
2018-08-10 11:54:26 +00:00
Bryan Boreham
5531a29d5a Merge pull request #3307 from weaveworks/init-jaeger
Add Jaeger distributed tracing support
2018-08-10 08:59:34 +01:00
Filip Barl
4139c1baf3 Merge pull request #3310 from weaveworks/3309-bump-lodash-dep
Bumps lodash dependency
2018-08-09 17:25:04 +02:00
Filip Barl
798348e1eb Bumps lodash dependency. 2018-08-09 15:51:36 +02:00
Filip Barl
9bb2e3d55e Merge pull request #3262 from weaveworks/3261-use-graph-node-component
Use GraphNode component
2018-08-09 15:07:00 +02:00
Marcus Cobden
02ebac68e4 Add a CLI flag to configure the service name 2018-08-09 14:06:57 +01:00
Marcus Cobden
2a87edd595 Upgrade some more dependencies 2018-08-09 13:18:13 +01:00
Marcus Cobden
b7c30d5bce Update github.com/weaveworks/common 2018-08-09 13:18:13 +01:00
Marcus Cobden
1e0cd0ee32 Update github.com/opentracing/opentracing-go 2018-08-09 13:18:13 +01:00
Marcus Cobden
00f311c50a Add Jaeger initialisation for distributed tracing 2018-08-09 13:18:13 +01:00
Filip Barl
a0ddd311d3 Addressed Guy's comment. 2018-08-09 12:32:29 +02:00
Filip Barl
65dad7242e Removed old graph nodes obsolete code. 2018-08-09 12:31:12 +02:00
Filip Barl
18342634c8 Made networks overlay work. 2018-08-09 12:31:12 +02:00
Filip Barl
b05563d9ab Made searching and metric fills work. 2018-08-09 12:31:12 +02:00
Filip Barl
b5ee1e690c Use GraphNode component for graph nodes. 2018-08-09 12:31:12 +02:00
Bryan Boreham
62a6838209 Merge pull request #3308 from weaveworks/2018-08-08-fix-cri-socket-volume-name
Fix the CRI volumeMount name in the example manifest
2018-08-08 16:04:01 +01:00
Damien Lespiau
1a24894c23 Fix the CRI volumeMount name in the example manifest
volumeMounts need to refer to an existing volume name to be successfully
mounted. cri-socket is the defined volume name.
2018-08-08 15:30:41 +01:00
Lili Cosic
701bed6bef Merge pull request #3305 from LiliC/lili/disable-cri-probe
Disable CRI probe by default
2018-08-08 12:10:03 +02:00
Lili Cosic
b971bea426 Disable CRI probe by default
This was enabled by default but we want it to be disabled instead, just
like with the docker probe.
2018-08-08 09:58:33 +02:00
Bryan Boreham
50a83b060f Merge pull request #3279 from weaveworks/check-pid
Check container is running before trying to open its namespace
2018-08-07 09:32:21 +01:00
Filip Barl
c33c91c265 Merge pull request #3294 from weaveworks/3285-increase-header-opacity
Make header semitransparent
2018-08-03 11:20:42 +02:00
Filip Barl
e1b1837fd6 Fixed the background color when nodes in focus. 2018-08-02 15:51:42 +02:00