glances icon indicating copy to clipboard operation
glances copied to clipboard

Create a Kubernetes (K8) plugin

Open nicolargo opened this issue 2 years ago • 5 comments

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/

nicolargo avatar Apr 08 '22 07:04 nicolargo

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

christianhuth avatar Dec 23 '22 13:12 christianhuth

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

nicolargo avatar Sep 23 '23 07:09 nicolargo

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

christianhuth avatar Sep 23 '23 16:09 christianhuth