做個補充,不同版本的docker的usage計算機制不同:
# On cgroup v1 host, the result is
docker stats=mem.Usage - mem.Stats["total_inactive_file"]
# On cgroup v2 host, the result is
docker stats=mem.Usage - mem.Stats["inactive_file"]
# On Docker 19.03 and older, the result was
docker stats=mem.Usage - mem.Stats["cache"]
容器內(nèi)存監(jiān)控尔艇,是看rss還是wss兑宇?問題 cadvisor提供了多個容器內(nèi)存相關(guān)的指標提前,其中最重要的是以下幾個: (From https://help.aliyun.com/document_detail/41...