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 understand cAdvisor, a sharp tool for data collection

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

Share

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

This article introduces you how to understand the data collection tool cAdvisor, the content is very detailed, interested friends can refer to, hope to be helpful to you.

CAdvisor is a container monitoring tool developed by google. Let's see what cAdvisor is capable of.

Run the cAdvisor container in host.

Docker run\

-- volume=/:/rootfs:ro\

-- volume=/var/run:/var/run:rw\

-- volume=/sys:/sys:ro\

-- volume=/var/lib/docker/:/var/lib/docker:ro\

-- publish=8080:8080\

-- detach=true\

-- name=cadvisor\

Google/cadvisor:latest

Access cAdvisor through http://[Host_IP]:8080.

Monitoring Docker Host

CAdvisor displays the current host resource usage, including CPU, memory, network, file system, and so on.

Monitoring container

Click the Docker Containers link.

Displays a list of containers.

Click on a container, such as sysdig, to go to the container's monitoring page.

These are the main functions of cAdvisor. To sum up, there are two main points:

Display the monitoring data at both Host and container levels.

Display historical change data.

Because cAdvisor provides a slightly crude interface, needs to jump between different pages, and can only monitor one host, people can't help but question its usefulness. But one of the highlights of cAdvisor is that it can export the monitored data to third-party tools for further processing.

We can position cAdvisor as a monitoring data collector, collecting and exporting data is its strength, rather than displaying data.

CAdvisor supports many third-party tools, including Prometheus, which you will focus on in the next section.

On how to understand the data collection tool cAdvisor to share here, I hope that the above content can be of some help to you, can 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