https://github.com/bsctl/topz
topz is a simple utility to expose top command as web interface
https://github.com/bsctl/topz
Last synced: 10 months ago
JSON representation
topz is a simple utility to expose top command as web interface
- Host: GitHub
- URL: https://github.com/bsctl/topz
- Owner: bsctl
- Created: 2020-01-26T09:40:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-26T12:36:30.000Z (over 6 years ago)
- Last Synced: 2024-11-07T09:53:08.482Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# topz
A simple utility to expose top command as web interface.
Create a pod from the manifest
kubectl apply -f mysql-pod-topz.yaml
Once the sidecar is running, check the pod IP address and visit `http://:1080/topz` to get a complete readout of the processes that are running in the mysql pod and their resource usage
$ curl 172.17.0.10:1080/topz
PID CPU % Memory % Command
1 0 0.00020143502 /pause
7 0 0.12791124 /bin/bash /usr/local/bin/docker-entrypoint.sh mysqld
78 0 0.22520435 /usr/bin/topz
171 0 0.032833908 sleep 1
Credits to https://github.com/brendandburns/topz