Lens not showing node memory usage, CPU and disk works fine (on Raspberry Pi cluster)
Describe the bug The cluster is four Raspberry Pi 5 running Debian 64-bit lite. I let Lens install prometheus and node-exporter, and for the nodes tab I see usage except on the memory row (see screenshot 1). The overall view (screenshot 2) works fine.
To Reproduce Steps to reproduce the behavior:
- Go to the nodes tab
Expected behavior The memory "bar" being colored.
Screenshots
Screenshot 1a (no memory usage showing):
Screenshot 1b (after clicking on a node):
Screenshot 2 (overall dashboard looking fine):
Environment (please complete the following information):
- Lens Version: 2024.1.170738-latest
- OS: [e.g. OSX] macOS 14.2.1 (M2)
- Installation method (e.g. snap or AppImage in Linux): DMG file
Logs: When you run the application executable from command line you will see some logging output. Please paste them here:
2024-01-31 18:07:53.600 Lens[7950:211717] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
info: ▪ [LENS-EXTENSIONS]: LOADING ... +0ms
info: ▪ [LENS-EXTENSIONS]: LOADED from /Users/michelle/Library/Application Support/Lens/lens-extensions.json +1ms
info: ▪ Starting v2024.1.170738-latest of Lens... +1ms
info: ▪ 🔌 Starting LensProxy +8ms
info: ▪ [LENS-PROXY]: Proxy server has started at 127.0.0.1:64191 +4ms
info: ▪ 🔎 Testing LensProxy connection ... +0ms
info: ▪ [LENS-USER-STORE]: LOADING ... +12ms
info: ▪ [LENS-USER-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/lens-user-store.json +1ms
info: ▪ [LENS-CLUSTER-STORE]: LOADING ... +1ms
info: ▪ [LENS-CLUSTER-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/lens-cluster-store.json +2ms
info: ▪ ⚡ LensProxy connection OK +6ms
info: ▪ 📟 Setting protocol client for lens:// +15ms
info: ▪ 📟 Protocol client register succeeded ✅ +0ms
info: ▪ [LENS-FILESYSTEM-PROVISIONER-STORE]: LOADING ... +1ms
info: ▪ [LENS-FILESYSTEM-PROVISIONER-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/lens-filesystem-provisioner-store.json +0ms
info: ▪ 🐚 Syncing shell environment +0ms
info: ┏ [UNIX-SHELL-ENV]: running against /bin/zsh +1ms
info: ┃ [1] {
info: ┃ [2] command: ` '/Applications/Lens.app/Contents/MacOS/Lens' -p '"26724e72fc2443a59951a66489a45d09" + JSON.stringify(process.env) + "26724e72fc2443a59951a66489a45d09"'`,
info: ┃ [3] shellArgs: [ '-l', '-i' ]
info: ┗ [4] }
info: ▪ [LENS-WEBLINK-STORE]: LOADING ... +1ms
info: ▪ [LENS-WEBLINK-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/lens-weblink-store.json +1ms
info: ▪ [CREATE-ELECTRON-WINDOW]: Loading content for window "splash" from file: /Applications/Lens.app/Contents/Resources/app.asar/static/splash.html... +62ms
info: ▪ [LENS-HOTBAR-STORE]: LOADING ... +7ms
info: ▪ [LENS-HOTBAR-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/lens-hotbar-store.json +1ms
info: ▪ [LENS-TABLE-STORE]: LOADING ... +0ms
info: ▪ [LENS-TABLE-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/lens-table-store.json +4ms
info: ▪ [CREATE-ELECTRON-WINDOW]: Window "splash" loaded +115ms
info: ▪ [SHELL-SYNC]: Synced shell env +256ms
info: ▪ 🧩 Initializing extensions +1ms
info: ▪ [EXTENSIONS-LOADER]: auto initializing extensions +0ms
info: ▪ [LENS-DESKTOP-KUBE] onActivate +315ms
info: ▪ [LDK-STORE]: LOADING ... +0ms
info: ▪ [LDK-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/extension-store/lens-desktop-kube-lens-extension/ldk-store.json +1ms
License main extension activated
info: ▪ [SECURITY-PREFERENCES-STORE]: LOADING ... +1ms
info: ▪ [SECURITY-PREFERENCES-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/extension-store/oci-image-lens-extension/security-preferences-store.json +1ms
info: ▪ [LENS-APPS] Main activated +0ms
info: ▪ [SUPPORT-EXTENSION] activated +1ms
info: ▪ [PREFERENCES-STORE]: LOADING ... +0ms
info: ▪ [PREFERENCES-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/extension-store/survey-lens-extension/preferences-store.json +0ms
info: ▪ [TOUR-EXTENSION] activated +1ms
info: ▪ [TIP-STORE]: LOADING ... +0ms
info: ▪ [TIP-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/extension-store/tour-lens-extension/tip-store.json +0ms
info: ▪ [CLOUD-PROVIDER-SYNC-EXTENSION] activated +0ms
info: ▪ [LENS-DESKTOP-KUBE] extracting virtual machine runtime files ... +14ms
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:54.452Z - startup-store ~ ElectronSyncStore:initialize, path /Users/michelle/Library/Application Support/Lens/extension-store/lenscloud-lens-extension/startup-store.json
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:54.452Z - startup-store ~ ElectronSyncStore:initialize, model {"skipSignup":false}
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:54.452Z - startup-store ~ ipcListen
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:54.453Z - select-space-store ~ ElectronSyncStore:initialize, path /Users/michelle/Library/Application Support/Lens/extension-store/lenscloud-lens-extension/select-space-store.json
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:54.453Z - select-space-store ~ ElectronSyncStore:initialize, model {"a866c358-8f9a-4f0d-bdde-051e1ee2bde6":{"spaceId":"offline","isPersonalSpace":true,"spaceName":"offline"}}
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:54.453Z - select-space-store ~ ipcListen
telemetry main extension activated
info: ▪ [PREFERENCES-STORE]: LOADING ... +39ms
info: ▪ [PREFERENCES-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/extension-store/telemetry-lens-extension/preferences-store.json +1ms
info: ▪ [LOCAL-METADATA-STORE]: LOADING ... +20ms
info: ▪ [LOCAL-METADATA-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/extension-store/lenscloud-lens-extension/local-metadata-store.json +1ms
info: ▪ [RELEASE-NOTES-STORE]: LOADING ... +0ms
info: ▪ [RELEASE-NOTES-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/extension-store/lenscloud-lens-extension/release-notes-store.json +0ms
info: ▪ [END-OF-TRIAL-STORE]: LOADING ... +0ms
info: ▪ [END-OF-TRIAL-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/extension-store/lenscloud-lens-extension/end-of-trial-store.json +1ms
info: ▪ [GRACE-PERIOD-STORE]: LOADING ... +0ms
info: ▪ [GRACE-PERIOD-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/extension-store/lenscloud-lens-extension/grace-period-store.json +0ms
info: ▪ [SPACES-SETTINGS-STORE]: LOADING ... +0ms
info: ▪ [SPACES-SETTINGS-STORE]: LOADED from /Users/michelle/Library/Application Support/Lens/extension-store/lenscloud-lens-extension/spaces-settings-store.json +0ms
info: ▪ [LENS-SPACES-EXTENSION]: 1/31/2024, 6:07:54 PM Broadcasted spaces change to SpacesListener on renderer +25ms
warn: ▪ [LENS-SPACES-EXTENSION]: 1/31/2024, 6:07:54 PM No spaces in SpaceSyncer disposeSpacesReaction, not changing selected space. +0ms
info: ▪ [LENS-SPACES-EXTENSION]: 1/31/2024, 6:07:54 PM Lens Spaces Extension activated +2ms
info: ▪ [LENS-SPACES-EXTENSION]: 1/31/2024, 6:07:54 PM [LENS-SPACES-EXTENSION] Registering cli +0ms
info: ▪ [CLI] Registered command undefined teamwork +10ms
info: ▪ [CLI] Registered command teamwork get-exec-credential <spaceName> <clusterId> +0ms
info: ▪ [CLI] Registered command undefined clusters +0ms
info: ▪ [CLI] Registered command clusters ls +0ms
info: ▪ [CLI] Registered command clusters show <name> +0ms
info: ▪ [CLI] Registered command clusters connect <name> +0ms
info: ▪ [CLI] Registered command clusters disconnect <name> +1ms
info: ▪ [LENS-SECURITY] activated +19ms
warn: ▪ [LENS-DESKTOP-KUBE] not a valid lens subscription, stopping ... +51ms
info: ▪ [LENS-SPACES-EXTENSION]: 1/31/2024, 6:07:54 PM isLensCloudStatusOk on initialization returns true +22ms
info: ▪ [LENS-DESKTOP-KUBE] Registering CLI commands +29ms
info: ▪ [EXTENSION]: enabled @lensapp/[email protected] +4ms
info: ▪ [EXTENSION]: enabled @lensapp/[email protected] +0ms
info: ▪ [EXTENSION]: enabled @lensapp/[email protected] +0ms
info: ▪ [EXTENSION]: enabled @lensapp/[email protected] +0ms
info: ▪ [EXTENSION]: enabled @lensapp/[email protected] +0ms
info: ▪ [EXTENSION]: enabled @lensapp/[email protected] +0ms
info: ▪ [EXTENSION]: enabled @lensapp/[email protected] +0ms
info: ▪ [EXTENSION]: enabled @lensapp/[email protected] +0ms
info: ▪ [EXTENSION]: enabled @lensapp/[email protected] +0ms
info: ▪ [EXTENSION]: enabled @lensapp/[email protected] +0ms
info: ▪ [CLI] Registered command undefined desktop-kube +1ms
info: ▪ [CLI] Registered command desktop-kube ls +0ms
info: ▪ [EXTENSION-DISCOVERY] loading extensions from /Users/michelle/Library/Application Support/Lens +0ms
info: ▪ [CLI] Registered command desktop-kube create <name> +0ms
info: ▪ [CLI] Registered command desktop-kube show <name> +0ms
info: ▪ [CLI] Registered command desktop-kube start <name> +0ms
info: ▪ [CLI] Registered command desktop-kube stop <name> +0ms
info: ▪ [CLI] Registered command desktop-kube reset <name> +0ms
info: ▪ [CLI] Registered command desktop-kube rm <name> +0ms
info: ▪ [CLI] Registered command desktop-kube shell <name> +0ms
info: ▪ [EXTENSION-DISCOVERY] watching extension add/remove in /Users/michelle/.k8slens/extensions +1ms
Checking for update
info: ▪ [CREATE-ELECTRON-WINDOW]: Loading content for window "first-application-window" from url: https://lens.app:64191... +22ms
info: ▪ [KUBECONFIG-SYNC]: starting requested syncs +41ms
info: ┏ [KUBECONFIG-SYNC]: starting sync of file/folder +0ms
info: ┗ [1] { filePath: '/Users/michelle/Library/Application Support/Lens/kubeconfigs' }
info: ┏ [KUBECONFIG-SYNC]: starting sync of file/folder +0ms
info: ┗ [1] { filePath: '/Users/michelle/.kube' }
[7950:0131/180754.755864:ERROR:cert_verify_proc_builtin.cc(702)] CertVerifyProcBuiltin for 127.0.0.1 failed:
----- Certificate i=0 (O=Lens,CN=Lens Certificate Authority) -----
ERROR: No matching issuer found
info: ▪ [LENS-SPACES-EXTENSION]: (from:TokenRefresher) 1/31/2024, 6:07:54 PM Detect token expires in 28799s (28799234.999895096ms), set refresh interval. +26ms
info: ▪ [LENS-SPACES-EXTENSION]: (from:TokenRefresher) 1/31/2024, 6:07:54 PM Start token refresh iterator... scheduled next refresh 2/1/2024, 1:58:18 AM +0ms
Staging percentage: 0.1, percentage: 0.13297687287744528, user id: add9be6a-8932-52eb-b182-a4aa220ac5b8
Update for version 2024.1.170738-latest is not available (latest version: 2024.1.300751-latest, downgrade is disallowed).
info: ▪ [CREATE-ELECTRON-WINDOW]: Window "first-application-window" loaded +746ms
(node:8199) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use `Lens Helper (Renderer) --trace-warnings ...` to show where the warning was created)
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:56.233Z - select-space-store ~ ipc electron-sync-store:renderer:initialize:select-space-store received
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:56.233Z - startup-store ~ ipc electron-sync-store:renderer:initialize:startup-store received
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:56.422Z - select-space-store ~ ipc electron-sync-store:renderer:initialize:select-space-store received
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:56.422Z - select-space-store ~ ipc electron-sync-store:renderer:initialize:select-space-store received
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:56.422Z - startup-store ~ ipc electron-sync-store:renderer:initialize:startup-store received
info: ┏ [CLUSTER]: activate +3s
info: ┃ [1] {
info: ┃ [2] id: '626585bfe660ab81b3b908d85c2ef24b',
info: ┃ [3] name: 'raspberrypi5-cluster',
info: ┃ [4] ready: false,
info: ┃ [5] online: false,
info: ┃ [6] accessible: false,
info: ┃ [7] disconnected: true
info: ┗ [8] }
info: ┏ [CLUSTER]: bind events +0ms
info: ┃ [1] {
info: ┃ [2] id: '626585bfe660ab81b3b908d85c2ef24b',
info: ┃ [3] name: 'raspberrypi5-cluster',
info: ┃ [4] ready: false,
info: ┃ [5] online: false,
info: ┃ [6] accessible: false,
info: ┃ [7] disconnected: true
info: ┗ [8] }
info: ┏ [CLUSTER]: reconnect +1ms
info: ┃ [1] {
info: ┃ [2] id: '626585bfe660ab81b3b908d85c2ef24b',
info: ┃ [3] name: 'raspberrypi5-cluster',
info: ┃ [4] ready: false,
info: ┃ [5] online: false,
info: ┃ [6] accessible: false,
info: ┃ [7] disconnected: true
info: ┗ [8] }
info: ▪ [KUBE-AUTH-PROXY]: found port=64247 +120ms
info: ┏ [CLUSTER]: refreshAccessibility +23ms
info: ┃ [1] {
info: ┃ [2] id: '626585bfe660ab81b3b908d85c2ef24b',
info: ┃ [3] name: 'raspberrypi5-cluster',
info: ┃ [4] ready: false,
info: ┃ [5] online: true,
info: ┃ [6] accessible: true,
info: ┃ [7] disconnected: false
info: ┗ [8] }
info: ▪ [CONTEXT-HANDLER]: using lens as prometheus provider for clusterId=626585bfe660ab81b3b908d85c2ef24b +935ms
(node:8199) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use `Lens Helper (Renderer) --trace-warnings ...` to show where the warning was created)
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:59.506Z - select-space-store ~ ipc electron-sync-store:renderer:initialize:select-space-store received
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:59.506Z - startup-store ~ ipc electron-sync-store:renderer:initialize:startup-store received
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:59.680Z - select-space-store ~ ipc electron-sync-store:renderer:initialize:select-space-store received
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:59.680Z - select-space-store ~ ipc electron-sync-store:renderer:initialize:select-space-store received
[ELECTRON-SYNC-STORE]: 2024-01-31T17:07:59.680Z - startup-store ~ ipc electron-sync-store:renderer:initialize:startup-store received
info: ▪ [CONTEXT-HANDLER]: using lens as prometheus provider for clusterId=626585bfe660ab81b3b908d85c2ef24b +3s
info: ▪ [CONTEXT-HANDLER]: using lens as prometheus provider for clusterId=626585bfe660ab81b3b908d85c2ef24b +16s
info: ┏ [CLUSTER]: refresh +10s
info: ┃ [1] {
info: ┃ [2] id: '626585bfe660ab81b3b908d85c2ef24b',
info: ┃ [3] name: 'raspberrypi5-cluster',
info: ┃ [4] ready: true,
info: ┃ [5] online: true,
info: ┃ [6] accessible: true,
info: ┃ [7] disconnected: false
info: ┗ [8] }
info: ▪ [CONTEXT-HANDLER]: using lens as prometheus provider for clusterId=626585bfe660ab81b3b908d85c2ef24b +4s
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.
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: <..>
server: https://192.168.250.155:6443
name: kubernetes
contexts:
- context:
cluster: kubernetes
user: kubernetes-admin
name: raspberrypi5-cluster
current-context: raspberrypi5-cluster
kind: Config
preferences: {}
Additional context I hope the screenshots explain enough of the issue. I have tried running a stress test to make a pod use around 4GB of memory, but it still didn't show up on the memory bar.
Hello MasterWayZ,
Thank you for reporting this issue!
I want to inform you that we working on it already.
Best Regards, Tikhon Kudinov Lens Support Engineer Mirantis, Inc