headlamp icon indicating copy to clipboard operation
headlamp copied to clipboard

Pod metrics not shown

Open manju-rn opened this issue 1 year ago • 5 comments

The node metrics are show. However the pod metrics are not shown. Can headlamp display that? the cpu and memory usage along with requests and limits information would greatly help

Here is my output of k top pods -A

NAMESPACE     NAME                                       CPU(cores)   MEMORY(bytes)
default       cf-app-78ffc8ff85-wmg7g                    3m           30Mi
kube-system   calico-kube-controllers-759cd8b574-vtp4k   2m           30Mi
kube-system   calico-node-58fdx                          24m          100Mi
kube-system   coredns-7896dbf49-ktv8n                    2m           30Mi
kube-system   metrics-server-df8dbf7f5-4jjjp             3m           35Mi
traefik       traefik-6d574648c7-pz7vf                   1m           79Mi
vscode-ns     vscodeapp-8c8687db7-4bjkl                  2m           192Mi

manju-rn avatar Nov 09 '24 03:11 manju-rn

Hi! As I know for pod metrics to work you should have prometheus installed inside your k8s cluster

feym78 avatar Nov 12 '24 15:11 feym78

Hi! As I know for pod metrics to work you should have prometheus installed inside your k8s cluster

Is this a headlamp requirement? Since pod metrics generally works fine without it as per my snapshot in earlier post above

manju-rn avatar Nov 12 '24 18:11 manju-rn

Hi! As I know for pod metrics to work you should have prometheus installed inside your k8s cluster

Is this a headlamp requirement? Since pod metrics generally works fine without it as per my snapshot in earlier post above

Yes, headlamp use prometheus plugin for rendering metrics, it search for a prometheus instance inside of the k8s cluster and grab metrics from it.

feym78 avatar Nov 13 '24 08:11 feym78

Hi @manju-rn you can try installing prometheus in Headlamp app by selecting the Apps page from the sidebar. Please check prometheus plugins for more information.

knrt10 avatar Nov 14 '24 06:11 knrt10

I think this issue can be closed because there is an issue open for it here:

  • https://github.com/kubernetes-sigs/headlamp/issues/1380

illume avatar May 06 '25 05:05 illume