How to change interval for kubectl top?

7/4/2019

I like to know how I can change the time interval of kubectl top for monitoring pods. At the moment it updates very slowly (I think it is more than 15s) and I want to have a more up to date values for the resource usage of my pods.

I am aware that I can use some other tools such as grafana, prometheus, etc. But when I work in terminal I like to have some simple monitoring tool running at the same environment.

-- AVarf
kubectl
kubernetes
kubernetes-pod
monitoring

1 Answer

7/4/2019

There is no flag for kubectl top for setting the refresh rate since it depends on the information collected by Heapster and Heapster depends on the kubelet metrics scraping interval.

-- yyyyahir
Source: StackOverflow