lensapp / lens

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

[enhancement] autodetect gke metrics #918

Open ghost opened 4 years ago

ghost commented 4 years ago

What would you like to be added: It would be nice if lens autodetected gke metrics (cpu usage, memory usage, etc) and show them automatically

Why is this needed: To be able to easily see metrics in lens for monitoring and debugging simple gke clusters. instead of having to look at the horrible google operations monitoring dashboard :P

Environment you are Lens application on:

ghost commented 4 years ago

I am guessing that gke uses prometheus by default since I see a DaemonSet named "prometheus-to-sd" created by deafault when the cluster is created.

esherrill commented 3 years ago

Not really. You have to install a Stackdriver collector sidecar and then set up a Prometheus instance. See e.g. https://cloud.google.com/stackdriver/docs/solutions/gke/prometheus

ghost commented 3 years ago

If you configure Cloud Operations for GKE and include Prometheus support, then the metrics that are generated by services using the Prometheus exposition format can be exported from the cluster and made visible as external metrics in Cloud Monitoring.

-- https://cloud.google.com/stackdriver/docs/solutions/gke/prometheus

it looks like that documentation is to forward prometheus metrics to google cloud monitoring I want to forward gke/gce metrics to prometheus (the opposite direction)

djnym commented 3 years ago

I was curious about the same thing, k9s works out of the box with GKE clusters, in that I get CPU/Memory/Etc for Pods and Nodes. I was trying lens and don't see any metrics, so wondering if it's just a configuration tweak to get the metrics working, this makes it seem like it's not?

Nokel81 commented 3 years ago

Related to #1865

ereio commented 1 year ago

+1

sagolubev commented 1 year ago

+1

caseybackes commented 7 months ago

+1