After updating the new version of Lens, the cluster metric displacement disappeared.
Metrics not available at the moment. Describe the bug
After updating the new version, the cluster metric display was missing.
To Reproduce
Steps to reproduce the behavior:
Go to update Lens in application.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Environment (please complete the following information):
The prometheus-server is installed in a cluster. I tried to ask it with my hands in the settings, the result is the same. Metrics are displayed in grafana. When connected to prometheus, data is also visible. A colleague on the old version of Lens has no problem.
I compiled version 6.2.6 all metrics are displayed.
I have the same problem and I see the METRICS-ROUTE logs, here is what the logs say
warn: [METRICS-ROUTE]: failed to get metrics for clusterId=113d51914b5b4e0a5b1409e1886dab30: Metrics not available {“stack”:“Error: Metrics not available\n at loadMetricHelper (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:44783:31)\n at process.processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async Promise.all (index 14)\n at async /Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:44827:36\n at async Object.route (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:43672:32)\n at async Router.route (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:43903:9)\n at async LensProxy.handleRequest (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:41416:9)”}
@asasas234 Thanks for the reply. Would you be able to run Lens from the command line and post the same log line. The formatter we are currently using for writing logs to disk throws away error causes (this is a bug).
warn: [METRICS-ROUTE]: failed to get metrics for clusterId=018ced145db0f43b48fd0e29ba1221d0: No Prometheus service found {“stack”:“Error: No Prometheus service found\n at ContextHandler.getPrometheusService (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:35750:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async ContextHandler.getPrometheusDetails (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:35702:25)\n at async /Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:44807:54\n at async Object.route (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:43672:32)\n at async Router.route (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:43903:9)\n at async LensProxy.handleRequest (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@k8slens/core/static/build/library/main.js:41416:9)”}