scope
scope copied to clipboard
Document how to use Scope in multi-cluster environment
Hi Team,
We are having multiple kubernetes clusters & we need to monitor them using weave scope.
How we can setup centralize dashboard. for multiple clusters?
Hi @sachinar, thanks for bringing this up!
As of now, Scope can work with multiple clusters (#3359), but the UI doesn't always know which objects come from which cluster (#2199).
I'll keep this issue open as I think we should add some minimal documentation in the FAQ, but in the meantime, all you need to do to get you going is to install Scope probe on every host of every cluster you are running and point them all to the same Scope app endpoint.
Please take a look at the following links for more context / examples:
- https://www.weave.works/docs/scope/latest/how-it-works/
- https://github.com/weaveworks/scope/tree/master/examples/k8s
same issue, trying to setup agent on multiple docker hosts. there are now answer how to do it on multiple linux hosts running docker-containers without any orchestrator
node with app
version: '2'
services:
scope-app:
image: weaveworks/scope:latest
container_name: scope-app
restart: unless-stopped
network_mode: host
pid: host
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/scope/plugins:/var/run/scope/plugins
- /sys/kernel/debug:/sys/kernel/debug
command:
- '--no-probe'
scope-probe:
image: weaveworks/scope:latest
container_name: scope-probe
restart: unless-stopped
network_mode: host
pid: host
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/scope/plugins:/var/run/scope/plugins
- /sys/kernel/debug:/sys/kernel/debug
command:
- '--probe.docker=true'
- 'scope-app:4040'`
node with prober
version: '2'
services:
scope-probe:
image: weaveworks/scope:latest
container_name: scope-probe
restart: unless-stopped
network_mode: host
pid: host
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/scope/plugins:/var/run/scope/plugins
- /sys/kernel/debug:/sys/kernel/debug
command:
- '--probe.docker=true'
- 'IP-of-app-node:4040'
and it work's perfect