Metrics are not available due to missing or invalid Prometheus configuration.
chuegel opened this issue · comments
Describe the bug
We have installed kube-prometheus-stack 58.2.2 with flux. All pods are fine:
NAME READY STATUS RESTARTS AGE
kube-prometheus-stack-grafana-7599479ffb-mjxdk 3/3 Running 0 2d7h
kube-prometheus-stack-kube-state-metrics-64db64c4d5-ktpvf 1/1 Running 0 2d5h
kube-prometheus-stack-operator-77c75fccd-c6qlf 1/1 Running 0 33m
kube-prometheus-stack-prometheus-node-exporter-5x97x 1/1 Running 0 4d18h
kube-prometheus-stack-prometheus-node-exporter-97dbf 1/1 Running 0 4d18h
kube-prometheus-stack-prometheus-node-exporter-hz4zf 1/1 Running 0 4d18h
loki-stack-0 1/1 Running 0 4d18h
loki-stack-promtail-bc95r 1/1 Running 0 4d18h
loki-stack-promtail-fpnh9 1/1 Running 0 4d18h
loki-stack-promtail-z64hg 1/1 Running 0 4d18h
prometheus-kube-prometheus-stack-prometheus-0 2/2 Running 0 2d5h
We already applied the values described here: https://github.com/lensapp/lens/blob/master/troubleshooting/custom-prometheus.md but the cluster node metrics are not available. Further, the memory metrics are not correct (see screenshot below)
However pod metrics are working.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
To be able to see node metrics as well.
Screenshots
see above
Environment (please complete the following information):
- Lens Version: 6.5.2-366
- OS: Ubuntu 22.04
- Installation method (e.g. snap or AppImage in Linux): deb
Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
when starting open-lens in CLI the app doesn't outputs any logs
Kubeconfig:
Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.
kubeconfig works fine
Additional context
Add any other context about the problem here.