#570silenceshell/topic: 基于 Golang 实现的容器内运行 top 命令的工具
topic
top in container.
Running the original top command in a container will not get information of the container, many metrics like uptime, users, load average, tasks, cpu, memory, are about the host in fact.
topic(top in container) will retrieve those metrics from container instead, and shows the status of the container, not the host.
Below shows a container of 2 cpu and 2 Gi running status when stress with --cpu 2.
How to use
Download topic from GitHub release page to the container which you want to inspect, and add x attribute to the binary, then run the binary!
Or just create a container for a try:
# start a 2c2g container
$ docker run -it --name topic --rm --cpus 2 --memory 2g silenceshell/topic bash
# run topic in this container
root@04065eeff138:/# topicHow to build
Run make build for linux and amd64. topic only support on linux. If you want to run on other architectures, GOARCH is need to be set.
stepchowfun/toast: 一个基于名为 toastfile 的 YAML 文件中定义任务,用于容器化工作流程的工具。kevwan/tproxy: 分析 gRPC 连接何时连接、何时重连。分析 MySQL 连接池,当前多少连接,连接的生命周期是什么策略。也可以用来观察和分析任何 TCP 连接

