glances
glances copied to clipboard
Create a Kubernetes (K8) plugin
As Glances can monitor Docker containers, it will be nice to have an additional K8 plugins to display pod/namespace.
Lib to use: https://github.com/kubernetes-client/python/
Be aware, that Docker is not supported anymore by Kubernetes starting with v1.23. Therefore it would be better to support other Container runtimes as stated in this issue #2226
Pod monitoring on a Kubernetes cluster introduces some questions:
- the pod can run on other node (Glances is done to monitor the localhost)
- by default only CPU and MEM usage can be monitored, not the disk I/O and net Rx/Tx
Perhaps a dedicated software will be more adapted: https://github.com/nicolargo/klances
You could run glances as DaemonSet to collect metrics of all containers on all hosts. But Docker isn't supported by Kubernetes anyway today so I think support for other container runtimes needs to be implemted first: https://github.com/nicolargo/glances/issues/2226