# Kubernetes state\_container issues

**URL:** <https://discuss.elastic.co/t/kubernetes-state-container-issues/122759>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 6, 2018, 5:42pm UTC](https://discuss.elastic.co/t/kubernetes-state-container-issues/122759 "2018-03-06T17:42:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Neely](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@Richard\_Neely](https://discuss.elastic.co/u/Richard_Neely)\
**Post date:** [March 6, 2018, 5:42pm UTC](https://discuss.elastic.co/t/kubernetes-state-container-issues/122759/1 "2018-03-06T17:42:10Z")

</div>

Currently running 6.2.2 across the board.  
I'm looking to gather metrics for kubernetes.container.memory.request.bytes and kubernetes.container.cpu.request.nanocores from state\_container but it doesn't list all pods there. It only has them for the default namespace and if the the pods have more than one replica it skips them entirely.

---

<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:** [March 12, 2018, 11:19am UTC](https://discuss.elastic.co/t/kubernetes-state-container-issues/122759/2 "2018-03-12T11:19:00Z")

</div>

Hi @Richard_Neely,

We recently merged a fix for this issue: [https://github.com/elastic/beats/pull/6294](https://github.com/elastic/beats/pull/6294), it's scheduled to be released with `6.3.0`.

Best regards

---

<div class="post-metadata">

**Author:** ![Richard\_Neely](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@Richard\_Neely](https://discuss.elastic.co/u/Richard_Neely)\
**Post date:** [March 12, 2018, 2:26pm UTC](https://discuss.elastic.co/t/kubernetes-state-container-issues/122759/3 "2018-03-12T14:26:45Z")

</div>

What about request metrics for all pods in the default namespace? This isn't accurate in state\_containers and it's not available for state\_pod.

---

<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:** [March 14, 2018, 5:23pm UTC](https://discuss.elastic.co/t/kubernetes-state-container-issues/122759/4 "2018-03-14T17:23:32Z")

</div>

Hi @Richard_Neely,

Would it be possible for you to dump `http://kube-state-metrics:8080/metrics` for debugging? Please have a look to the content before posting, just in case you want to remove any sensitive data.

Best regards

---

<div class="post-metadata">

**Author:** ![Richard\_Neely](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@Richard\_Neely](https://discuss.elastic.co/u/Richard_Neely)\
**Post date:** [March 14, 2018, 6:02pm UTC](https://discuss.elastic.co/t/kubernetes-state-container-issues/122759/5 "2018-03-14T18:02:51Z")

</div>

That's a lot of data to scrub. I'm interested in these metrics which show from kube-state-metrics.

kube\_pod\_container\_resource\_requests\_cpu\_cores  
kube\_pod\_container\_resource\_requests\_memory\_bytes

---

<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:** [April 11, 2018, 6:03pm UTC](https://discuss.elastic.co/t/kubernetes-state-container-issues/122759/6 "2018-04-11T18:03:04Z")

</div>

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