# Kubernetes module 6.2.4 vs 6.4.0 : cpu usage x3

**URL:** <https://discuss.elastic.co/t/kubernetes-module-6-2-4-vs-6-4-0-cpu-usage-x3/148591>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 14, 2018, 9:18am UTC](https://discuss.elastic.co/t/kubernetes-module-6-2-4-vs-6-4-0-cpu-usage-x3/148591 "2018-09-14T09:18:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamelg](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hamelg](https://discuss.elastic.co/u/hamelg)\
**Post date:** [September 14, 2018, 9:18am UTC](https://discuss.elastic.co/t/kubernetes-module-6-2-4-vs-6-4-0-cpu-usage-x3/148591/1 "2018-09-14T09:18:49Z")

</div>

We have a pod running the module kubernetes in our openshift cluster. We had upgraded metricbeat from 6.2.4 to 6.4.0. We have noticed that metricbeat 6.4.0 consummates 3 times cpu than 6.2.4.  
Here is our the metricbeat config. Is there any reason ?

====  
- module: kubernetes  
enabled: true  
metricsets:  
- state\_node  
- state\_deployment  
- state\_replicaset  
- state\_pod  
- event  
period: 1m  
hosts: ["kube-state-metrics:8080"]

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [September 14, 2018, 11:32am UTC](https://discuss.elastic.co/t/kubernetes-module-6-2-4-vs-6-4-0-cpu-usage-x3/148591/2 "2018-09-14T11:32:45Z")

</div>

Hi @hamelg,

We introduced automatic enriching for all Kubernetes metricsets. That means that every monitored resource events (for instance, replicaset metrics) get enriched with labels and annotations from that resource.

You can disable that behavior by setting `add_metadata: false` in the module settings.

Best regards

---

<div class="post-metadata">

**Author:** ![hamelg](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hamelg](https://discuss.elastic.co/u/hamelg)\
**Post date:** [September 14, 2018, 2:43pm UTC](https://discuss.elastic.co/t/kubernetes-module-6-2-4-vs-6-4-0-cpu-usage-x3/148591/3 "2018-09-14T14:43:30Z")

</div>

Thank you.  
I tried `add_metadata: false`, it removes label et annotations but it makes no difference on the cpu usage.

---

<div class="post-metadata">

**Author:** ![willemdh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willemdh/32/16922_2.png) [@willemdh](https://discuss.elastic.co/u/willemdh)\
**Post date:** [September 14, 2018, 3:17pm UTC](https://discuss.elastic.co/t/kubernetes-module-6-2-4-vs-6-4-0-cpu-usage-x3/148591/4 "2018-09-14T15:17:30Z")

</div>

What about 6.3.2? (which I'm using currently on Openshift)

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [September 20, 2018, 9:14pm UTC](https://discuss.elastic.co/t/kubernetes-module-6-2-4-vs-6-4-0-cpu-usage-x3/148591/5 "2018-09-20T21:14:54Z")

</div>

in addition to that, could you provide full configuration + your measures? I've reviewed and we didn't add many things apart from the `add_metadata`.

Best regards

---

<div class="post-metadata">

**Author:** ![hamelg](https://avatars.discourse-cdn.com/v4/letter/h/ecae2f/32.png) [@hamelg](https://discuss.elastic.co/u/hamelg)\
**Post date:** [September 28, 2018, 2:41pm UTC](https://discuss.elastic.co/t/kubernetes-module-6-2-4-vs-6-4-0-cpu-usage-x3/148591/6 "2018-09-28T14:41:37Z")

</div>

Sorry for the delay. I'll give you a complete feedback when we'll upgrade our RUN cluster. At now, we seen that on our BUILD cluster, now in 6.4 and I don't want downgrade in 6.2.

Our BUILD cluster is running 1300 pods.

```
- module: kubernetes
  enabled: true
  metricsets:
    - state_node
    - state_deployment
    - state_replicaset
    - state_pod
    - event
  period: 1m

```

 ![Screenshot_2018-09-28%20Grafana%20-%20LimitRequestByApps%20v2](https://us1.discourse-cdn.com/elastic/original/3X/3/1/3141d638bdff5744bed4d05fd638147151911f8e.png)

---

<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:** [October 26, 2018, 2:41pm UTC](https://discuss.elastic.co/t/kubernetes-module-6-2-4-vs-6-4-0-cpu-usage-x3/148591/7 "2018-10-26T14:41:39Z")

</div>

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