lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.29k stars 1.45k forks source link

CPU and Memory values appear as NA in the Pods List #8047

Open Argalep opened 1 month ago

Argalep commented 1 month ago

Describe the bug In the pod list in the Lens application Pods tab, CPU and Memory values appear as NA. However, when you click on any pod, the values of the pod appear correctly.

To Reproduce Steps to reproduce the behavior:

  1. Go to Pods Tab

Screenshots

image

image

Environment (please complete the following information):

harris1111 commented 1 month ago

I also encounter this bug, however, I only have it when using with EKS. With my k3s that I self-hosted on-prem, it's normal.

jweak commented 1 month ago

I think those columns in the table use the metrics-server and not Prometheus.... That's why they can differ.

harris1111 commented 1 month ago

I think those columns in the table use the metrics-server and not Prometheus.... That's why they can differ.

so do you have any solution to this?

MartinLoeper commented 2 weeks ago

Thanks so much for pointing this out @jweak!!

@harris1111 I installed metrics-server using the official helm chart and it just works. Metrics are showing in lens now.

harris1111 commented 2 weeks ago

I forgot to update it here. After reconfigure EKS, I installed metrics server as usual and all the metrics appear. Don't know what happened to my metrics server in my previvous EKS, but it works.