kxtop - A kubectl top alternative [Must try once]

Adarsh Saxena - Aug 2 - - Dev Community

While kubectl top has been a go-to tool for many, the emergence of kxtop offers a compelling alternative, specially for EKS, with enhanced overview of resource usage.

But what is kxtop?

kxtop is a powerful tool designed to provide detailed insights into the resource usage of your Kubernetes clusters. It extends the functionality of kubectl top by offering more comprehensive and user-friendly resource usage view, making it easier to monitor and manage your cluster’s performance.

Link: https://github.com/theadarshsaxena/kxtop

Let's discuss about the commands it provides:

1. kxtop nodes

  • Used to get the EKS nodes usage with %allocated and %usage of CPU/Memory
  • Number of Pods in each node
  • Instance type of each node
  • Total cost of nodes running (excluding Control plane cost, which is generally 72 USD)
  • Total CPU/Memory Efficiency of the cluster

kxtop nodes image

2. kxtop pods [-n <namespace>]

  • Used to get the pods CPU/Memory usage with percentage showing usage out of total requested.
  • Shows the node in which the pod is present

kxtop pods image

Though the GitHub repository says that more commands like pvc and analytics are coming soon, let's see!

Link to repo/download: https://github.com/theadarshsaxena/kxtop

Let me know if you find this tool or this post useful in the comment section below!!

.
Terabox Video Player