AVarf
AVarf

Reputation: 5169

How to change interval for kubectl top?

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.

Upvotes: 2

Views: 15568

Answers (1)

yyyyahir
yyyyahir

Reputation: 2322

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.

Upvotes: 6

Related Questions