Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to practice Weave Scope

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail the practice of how to carry out Weave Scope. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

The most important feature of Weave Scope is that it automatically generates a map of the Docker container, allowing us to understand, monitor and control the container intuitively. A thousand words are not worth a picture. Feel it first.

Let's start practicing Weave Scope.

Installation

Execute the following script to install and run Weave Scope.

Curl-L git.io/scope-o / usr/local/bin/scope

Chmod axix / usr/local/bin/scope

Scope launch

Scope launch will start Weave Scope as a container.

According to the prompt, the access address of Weave Scope is http://[Host_IP]:4040/

Container monitoring

The middle of the Weave Scope map shows the containers in which Host is currently running, but a few weave-related containers are missing.

Weave Scope divides containers into two categories: Weave's own container System Container, and other container Application Container, which is displayed only by default.

The Weave Scope interface is an interactive map that is easy to use. For example, click on the lower left corner of the map to select the switch All.

All the containers will be displayed immediately on the map.

Click the CPU selector.

Weave Scope displays container CPU usage at high and low water levels.

If we place the mouse over the container icon at this time, the specific CPU% will be displayed.

If you want to see the details of the container, such as sysdig, you can click on the container's icon.

The details include the following sections:

Status

CPU, real-time usage of memory, and history curves.

INFO

Container image, startup command, status, network and other information.

The following items need to be viewed by pulling the scroll bar.

PROCESSES

The process running in the container.

ENVIRONMENT VARIABLES

Environment variable.

DOCKER LABELS

The container starts the command.

IMAGE

Mirror details.

There is also a row of action buttons on top of the container information.

They are:

Start the process from attach to the container, which is equivalent to executing docker container attach

Opening shell is equivalent to executing docker container exec

Restart the container, which is equivalent to executing docker container restart

Pause the container, which is equivalent to executing docker container pause

Close the container, which is equivalent to executing docker container stop

This row of buttons enables us to remotely control the container, which is quite convenient. The most commonly used is probably

Yes. For example, you can jump directly into the sysdig container and start the csysdig monitoring tool.

This article mainly introduces the function of Weave Scope monitoring container. In addition to containers, Weave Scope can also monitor Docker Host.

This is the end of the practice on how to carry out Weave Scope. I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report