guiqui / k8Studio

K8Studio: A Kubernetes IDE
https://k8studio.io
Other
794 stars 25 forks source link

Monitoring metrics don't work #81

Closed advur closed 4 months ago

advur commented 4 months ago

On a bare-metal installation, the metrics are not working as expected. I have configured it with Prometheus Operator in Lens (prometheus-operator:9090 or kube-prometheus-stack:80), but the metrics are still not showing.

guiqui commented 4 months ago

Hello advur, Looks like you are missing the namespace. default/prometheus-operator:9090 The setting are /:. Could you try with the namespace ?

advur commented 4 months ago

Hello! Of course, i use the full link that looks like monitoring/prometheus-operated:9090. I'm attaching screenshots for clarity from my local minikube.

K8Studio

Screenshot 2024-04-18 at 15 12 48

LENS

Screenshot 2024-04-18 at 15 16 35 Screenshot 2024-04-18 at 15 17 21
mo-othman commented 4 months ago

Hi @advur Can i know what do you see under metrics tab in the item details view?

Screenshot 2024-04-18 201410
advur commented 4 months ago

@mo-othman Hi! Indeed, there are CPU/RAM metrics in the pod tab

Screenshot 2024-04-18 at 16 18 23
mo-othman commented 4 months ago

do you have metrics server installed? https://github.com/kubernetes-sigs/metrics-server

advur commented 4 months ago

No, it has not been installed. Now i've installed this and the metrics have started to be displayed. Is this targeted solution ?

mo-othman commented 4 months ago

Yes, To expose them through resource metrics api (/metrics)