Hi,
I’m trying to reproduce the “Pod → Memory Requests” value I see in OpenLens via Prometheus/Grafana/CLI, but I can’t find the exact PromQL OpenLens uses.
I’m seeing a big gap between “pod memory” numbers and the “container memory” numbers;even when there’s only one container in the pod. I guess the container panel uses container_memory_working_set_bytes
, but I’m unsure what metric/query the pod panel uses.
Thank you in advance.
Example: Lens shows the pod around 15–16 GiB(screenshot1, screenshot2), but the single container sits at 7–8 GiB(screenshot3) while node is using 22 GiB memory(screenshot4).
So I want to know exactly which metrics/queries Lens uses so I can figure out what these gap is.
Or possibly bug? (Lens Metrics get wrong values of CPU, RAM · Issue #7299 · lensapp/lens · GitHub, Lens displaying incorrect resource values for nodes and pods - #2 by jehrismann)
Lens: 2025.8.121212-latest Electron: 35.4.0 Chrome: 134.0.6998.205 Node: 22.15.0 MACOS