hans
08/15/2024, 8:27 AMkubectl top po gives very different result that what signoz is showing for average k8s_pod_memory_usage
(using bytes (SI) as Y axis unit)
at 10:25:09 ❯ kubectl top po
NAME CPU(cores) MEMORY(bytes)
chi-signoz-clickhouse-cluster-0-0-0 2334m 8225Mihans
08/15/2024, 9:56 AMk8s_pod_memory_request_utilization to what i see in kubectl top po it doesnt matchhans
08/15/2024, 10:21 AMk8s_pod_memory_working_set seems closer to what i get in kubectl top pohans
08/15/2024, 10:32 AMkubectl top po and k8s_pod_memory_working_set is correct, then memory_request_utilization is very wrongSrikanth Chekuri
08/16/2024, 4:59 AMSrikanth Chekuri
08/16/2024, 5:01 AMIt's because that's what the top shows. The working set memory shows both the resident memory + cacheseems closer to what i get ink8s_pod_memory_working_setkubectl top po
Srikanth Chekuri
08/16/2024, 5:02 AMhans
08/16/2024, 12:07 PMhans
08/16/2024, 12:07 PMk8s.pod.memory_request_utilization
Pod memory utilization as a ratio of the pod's total container requests. If any container is missing a request the metric is not emitted.hans
08/16/2024, 12:09 PM16000Mi and kubectl top po says around 8000Mi , but the k8s.pod.memory_request_utilization says 1.4hans
08/16/2024, 12:10 PMk8s.pod.memory_request_utilization is calculated wronghans
08/19/2024, 10:14 AMcontainer_memory_working_set by k8s_container_memory_request seems to give a better view of when the container is going over its request than k8s_pod_memory_request_utilization or am i wrong you think @Srikanth ChekuriSrikanth Chekuri
08/19/2024, 11:04 AMk8s_pod_memory_request_utilization is calculated so I can't judge which is a better representative metric.hans
08/19/2024, 11:04 AM