# Kubernetes: collecting allocate resource percentages for nodes

**URL:** <https://discuss.elastic.co/t/kubernetes-collecting-allocate-resource-percentages-for-nodes/213817>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 5, 2020, 6:28pm UTC](https://discuss.elastic.co/t/kubernetes-collecting-allocate-resource-percentages-for-nodes/213817 "2020-01-05T18:28:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![collinwright](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/collinwright/32/55800_2.png) [@collinwright](https://discuss.elastic.co/u/collinwright)\
**Post date:** [January 5, 2020, 6:28pm UTC](https://discuss.elastic.co/t/kubernetes-collecting-allocate-resource-percentages-for-nodes/213817/1 "2020-01-05T18:28:34Z")

</div>

I'm interested in using Metricbeat to monitor the resources Kubernetes has allocated (but may not necessarily be using) on each node. These numbers can be seen, for example, by running "kubectl describe node":

```
...
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  Resource Requests Limits
  -------- -------- ------
  cpu 800m (5%) 500m (3%)
  memory 812Mi (5%) 1112Mi (7%)
  ephemeral-storage 10Gi (39%) 1
...

```

I'm not seeing how I could collect this data easily with Metricbeat. I've looked at the available [`kubernetes.node`](https://www.elastic.co/guide/en/beats/metricbeat/current/exported-fields-kubernetes.html#_node_4) fields, but the closest I can find is `kubernetes.node.cpu.allocatable.cores` and `kubernetes.node.memory.allocatable.cores`. These fields are the upper limit that requests and limits can reach, but do not reflect the actual amount of resources currently scheduled.

Is there any way to get this information currently, or would I be able to help submit a PR to add this functionality?

---

<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:** [February 2, 2020, 6:28pm UTC](https://discuss.elastic.co/t/kubernetes-collecting-allocate-resource-percentages-for-nodes/213817/2 "2020-02-02T18:28:38Z")

</div>

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