# Unable to get the cpu metrics while using metricbeats on kubernetes

**URL:** https://discuss.elastic.co/t/unable-to-get-the-cpu-metrics-while-using-metricbeats-on-kubernetes/222215
**Category:** Beats
**Tags:** metricbeat
**Created:** [March 5, 2020, 7:20am UTC](https://discuss.elastic.co/t/unable-to-get-the-cpu-metrics-while-using-metricbeats-on-kubernetes/222215 "2020-03-05T07:20:53Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Babadofar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/babadofar/32/44803_2.png) [@Babadofar](https://discuss.elastic.co/u/Babadofar)
#### Post date: [March 7, 2020, 1:13pm UTC](https://discuss.elastic.co/t/unable-to-get-the-cpu-metrics-while-using-metricbeats-on-kubernetes/222215/2 "2020-03-07T13:13:28Z")

</div>

You may need to edit the cluster role. See this [Metricbeat apiserver metricset needs clusterrole when RBAC enabled in k8s 1.14](https://discuss.elastic.co/t/metricbeat-apiserver-metricset-needs-clusterrole-when-rbac-enabled-in-k8s-1-14/219770)

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-get-the-cpu-metrics-while-using-metricbeats-on-kubernetes/222215)._
