docker container monitoring


Weave Scope:

   It is the ability to automatically generate a Docker container web monitoring software dynamic figure that allows us intuitively understand, monitor, and control the vessel.

Monitoring a host:

Step 1: Install

[root@localhost ~]# curl -L git.io/scope -o /usr/local/bin/scope
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0
0 0 0 595 0 0 43 0 --:--:-- 0:00:13 --:--:-- 197
100 11664 100 11664 0 0 676 0 0:00:17 0:00:17 --:--:-- 5993
[root@localhost ~]# chmod a+x /usr/local/bin/scope

Step Two: Start

[root@localhost ~]# chmod a+x /usr/local/bin/scope
[root@localhost ~]# scope launch 
...
Weave Scope is listening at the following URL(s):
* http://172.18.0.1:4040/
* http://192.168.59.200:4040/
* http://192.59.56.1:4040/
* http://192.168.122.1:4040/

The third step: Access Browser

Click the image, you can view a container cpu and other information, you can also enter the container.
attach to start the process vessel, equivalent to the implementation docker container attach
to open the shell, equivalent to the implementation docker container exec
restart vessel, equivalent to the implementation docker container restart
suspended container, equivalent to the implementation docker container pause
closed container, equivalent to the implementation docker container stop

In addition, weavescope can manage the host, monitoring host, the host can also enter

 

weavescope manage multiple hosts:

docker1:192.168.59.200
docker2:192.168.59.201


Step 1: Install (docker1, docker2)

[root@localhost ~]# curl -L git.io/scope -o /usr/local/bin/scope
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0
0 0 0 595 0 0 43 0 --:--:-- 0:00:13 --:--:-- 197
100 11664 100 11664 0 0 676 0 0:00:17 0:00:17 --:--:-- 5993
[root@localhost ~]# chmod a+x /usr/local/bin/scope

Step two: add access address

[root@docker1 ~]# scope launch 192.168.59.201 192.68.59.200
[root@docker2 /]# scope launch 192.168.59.201 192.68.59.200

The third step: re-access the browser

 

 You can also search:

 

 

 

Guess you like

Origin www.cnblogs.com/twoo/p/11837469.html