docker 进行性能监控

方法 一:docker stats命令查看

方法二 :weavescope监控

1、 下载 scope 工具

sudo curl -L https://github.com/weaveworks/scope/releases/download/latest_release/scope -o /usr/local/bin/scope

2、使 scope 具有执行权限

sudo chmod +x /usr/local/bin/scope

3、以容器方式启动scope

scope launch -app.http.address :8888

或者需要设置用户名密码的话

sudo scope launch -app.basicAuth -app.basicAuth.password mypassword -app.basicAuth.username myuser -probe.basicAuth -probe.basicAuth.password mypassword -probe.basicAuth.username myuser # 用户 myuser, 密码 mypassword

4、启动后,通过访问地址http://192.168.112.101:8888即可

 

 

方法三、k8s环境参考如下

kubectl命令详解
https://blog.51cto.com/u_7072753/2635208

posted @ 2022-09-16 16:31  leo博客  阅读(197)  评论(0编辑  收藏  举报