# There are wrong values with memory usage in kubernetes metricbeat module

**URL:** <https://discuss.elastic.co/t/there-are-wrong-values-with-memory-usage-in-kubernetes-metricbeat-module/288261>\
**Category:** Beats\
**Created:** [November 2, 2021, 7:54pm UTC](https://discuss.elastic.co/t/there-are-wrong-values-with-memory-usage-in-kubernetes-metricbeat-module/288261 "2021-11-02T19:54:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio\_Ferreyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergio_ferreyra/32/93646_2.png) [@Sergio\_Ferreyra](https://discuss.elastic.co/u/Sergio_Ferreyra)\
**Post date:** [November 2, 2021, 7:54pm UTC](https://discuss.elastic.co/t/there-are-wrong-values-with-memory-usage-in-kubernetes-metricbeat-module/288261/1 "2021-11-02T19:54:05Z")

</div>

Hi team, Having an issue with the values of this metric. **`kubernetes.node.memory.usage.bytes`**  
Looks like is not taking the proper values, for example:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/0/70c7023a5a07b7bd0e50cca1d62a44f3284e8be4.png)

I am using that metric to get the memory usage but is not the correct number, If I compare for example with kubectl command:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/e/4ef56ac0ea565db436f2ce25a33a7ad2a7576071.png)  
Do you have any idea if there is a bug using this field?

Regards!

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [November 10, 2021, 4:23am UTC](https://discuss.elastic.co/t/there-are-wrong-values-with-memory-usage-in-kubernetes-metricbeat-module/288261/2 "2021-11-10T04:23:54Z")

</div>

Looks like all memory size and CPU total are the same for some reason. @ChrsMark Could you double check on this to see if it's a bug please? TIA!!

---

<div class="post-metadata">

**Author:** ![Sergio\_Ferreyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergio_ferreyra/32/93646_2.png) [@Sergio\_Ferreyra](https://discuss.elastic.co/u/Sergio_Ferreyra)\
**Post date:** [November 12, 2021, 2:50pm UTC](https://discuss.elastic.co/t/there-are-wrong-values-with-memory-usage-in-kubernetes-metricbeat-module/288261/3 "2021-11-12T14:50:26Z")

</div>

Hey @Kaiyan_Sheng , yes looks like there is an issue reported in github but not sure if was fixed.

> <https://github.com/elastic/beats/issues/8360>
>
> I was trying to display the memory available vs memory usage of a Kubernetes nod…e but then I noticed something strange. I am not sure whether it's metricsbeat that is at fault or not so I thought I would post it here.
> 
> \<img width="1810" alt="screen shot 2018-09-19 at 17 47 26" src="https://user-images.githubusercontent.com/6195629/45768238-406ce600-bc34-11e8-9376-6e61ccd697e7.png"\>
> 
> As you can see the \`kubernetes.node.memory.usage.bytes\` is higher than the \`kubernetes.node.memory.allocatable.bytes\`. How is that possible?
> 
> The unit of measure configured within Grafana (\`5.2.3\`) is \`bytes\`. The version of metricbeat is \`6.4.0\`. The node is a Google Compute Engine instance of type \`n1-standard-2 (2 vCPUs, 7.5 GB memory)\`.

Regards!

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [November 23, 2021, 10:40pm UTC](https://discuss.elastic.co/t/there-are-wrong-values-with-memory-usage-in-kubernetes-metricbeat-module/288261/4 "2021-11-23T22:40:43Z")

</div>

Thanks! What version of Metricbeat are you running?

---

<div class="post-metadata">

**Author:** ![Sergio\_Ferreyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergio_ferreyra/32/93646_2.png) [@Sergio\_Ferreyra](https://discuss.elastic.co/u/Sergio_Ferreyra)\
**Post date:** [November 24, 2021, 3:53am UTC](https://discuss.elastic.co/t/there-are-wrong-values-with-memory-usage-in-kubernetes-metricbeat-module/288261/5 "2021-11-24T03:53:17Z")

</div>

Hi @Kaiyan_Sheng. We are using 7.12.1 version

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 22, 2021, 5:54am UTC](https://discuss.elastic.co/t/there-are-wrong-values-with-memory-usage-in-kubernetes-metricbeat-module/288261/6 "2021-12-22T05:54:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
