scope icon indicating copy to clipboard operation
scope copied to clipboard

Document how to use Scope in multi-cluster environment

Open sachinar opened this issue 5 years ago • 3 comments

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?

sachinar avatar Aug 09 '19 06:08 sachinar

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

fbarl avatar Aug 09 '19 18:08 fbarl

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

cybervagabond avatar Nov 26 '19 15:11 cybervagabond

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

mfominov avatar Apr 29 '20 22:04 mfominov