Kubernetes: collecting allocate resource percentages for nodes

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 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?

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