docker监控-Weave-Scope

Weave-Scope服务是一个用来监控docker容器、k8s等(包括宿主机)的资源使用状况的

安装

方法1

wget https://github.com/weaveworks/scope/archive/v1.11.0.tar.gz
tar zxf v1.11.0.tar.gz
cd scope-1.11.0/      
mv scope /usr/bin/
chmod +x /usr/bin/scope

方法2

curl -L git.io/scope -o /usr/bin/scope
chmod +x /usr/bin/scope

监控

# 默认监控本机
[root@node1 ~]# scope launch
Unable to find image 'weaveworks/scope:1.13.2' locally
1.13.2: Pulling from weaveworks/scope
ba3557a56b15: Pull complete 
3ac4c0e9800c: Pull complete 
d052e74a4dae: Pull complete 
aacb9bf49f73: Pull complete 
06841e6f61a9: Pull complete 
ee99b95c7732: Pull complete 
dd0e726a9a15: Pull complete 
05cb5f9d0d32: Pull complete 
e956cf3e716a: Pull complete 
Digest: sha256:8591bb11d72f784f784ac8414660759d40b7c0d8819011660c1cc94271480a83
Status: Downloaded newer image for weaveworks/scope:1.13.2
48986d814fa467781c069ccf880cc0007b1475521ab0f766af08696bc48ba374
Scope probe started
Weave Scope is listening at the following URL(s):
  * http://192.168.0.11:4040/

说明

scope launch 192.168.0.11 192.168.0.12   #指定需要监控的docker服务器IP地址

你可能感兴趣的:(docker,docker)