prometheus-community / helm-charts

Prometheus community Helm charts
Apache License 2.0
5.06k stars 5.01k forks source link

[prometheus] Metrics are not available in Lens due to missing or invalid Prometheus configuration #4647

Open lanru2001 opened 3 months ago

lanru2001 commented 3 months ago

Describe the bug a clear and concise description of what the bug is.

Exact issues were reported in https://github.com/prometheus-community/helm-charts/issues/2321#issuecomment-1225291826 and  #1613.
I installed the latest Prometheus chart (25.21.0) with the default config. When I use Lens, I got metrics are not available due to missing or invalid Prometheus configuration.

Troubleshooting revealed that this is due to label rename from kubernetes_node to node.

I looked into existing issues and found #1613. According to that one, a new setting honor_labels is introduced and set to true, which should have fixed it, e.g. no need for that fix on Lens, but unfortunately it doesn't work with the latest chart.

Is this something that need to be fix in the Prometheus Chart, or create an issue with Lens?

What's your helm version?

v3.12.0

What's your kubectl version?

v1.25.2

Which chart?

prometheus

What's the chart version?

25.21.0

What happened?

Metrics are not available due to missing or invalid Prometheus configuration when using Lens with Prometheus chart. CPU usage and CPU memory not available in Lens

What you expected to happen?

Metrics (CPU and Memory) should be available in Lens.

How to reproduce it?

Create an AWS EKS cluster, 
Install Prometheus using Prometheus Chart with default values, open Lens
to connect cluster
and view that pod or node cpu and memory are missing.

Enter the changed values of values.yaml?

https://artifacthub.io/packages/helm/prometheus-community/prometheus?modal=values

Enter the command that you execute and failing/misfunctioning.

No command failed but CPU and Memory aren't showing up in Lens.

Anything else we need to know?

AWS EKS, Kubernetes: v1.29
 and Lens: 2024.5.271333-latest.

lanru2001 commented 2 months ago

Any update on this?

gthomson31 commented 1 month ago

Same issue after upgrade to latest it doesn't pick up in lens