This is a simple tool which derives the metrics for both the nodes and the pods in terms of CPU and Memory usage using the go-client for k8s.
For pod metrics, use this command:
go run main.go -namespace jenkins -entity pods
For node metrics, use this command:
go run main.go -entity nodes
For pods:
For nodes: