Docker監控docker stats命令的使用與返回參數的意思


在命令行輸入docker stats 即可看見docker內運行的容器的物力資源使用情況,以我的為例

這個是會一直動態展示數據,按住Ctrl C 即可退出展示。當然你也可以使用命令docker stats ---no-stream這樣子就展示當前狀態就直接退出了

前面幾項能明白啥意思,后面的就比較模糊,於是查閱了官方文檔

Column name Description
CONTAINER ID and Name the ID and name of the container
CPU % and MEM % the percentage of the host’s CPU and memory the container is using
MEM USAGE / LIMIT the total memory the container is using, and the total amount of memory it is allowed to use
NET I/O The amount of data the container has sent and received over its network interface
BLOCK I/O The amount of data the container has read to and written from block devices on the host
PIDs the number of processes or threads the container has created

給大家翻譯一下

Column name Description
CONTAINER ID and Name
CPU % and MEM % 容器正在使用的主機CPU和內存的百分比
MEM USAGE / LIMIT 容器正在使用的總內存以及允許使用的總內存量
NET I/O 容器通過其網絡接口發送和接收的總數據量
BLOCK I/O 容器已從主機上的塊設備讀取和寫入的數據量
PIDs 容器創建的進程或線程數

參考鏈接


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM