# Metric for CPU Usage like in OpenLens?

**URL:** <https://discuss.prometheus.io/t/metric-for-cpu-usage-like-in-openlens/1239>\
**Category:** Exporters and Metrics\
**Created:** [October 12, 2022, 9:38am UTC](https://discuss.prometheus.io/t/metric-for-cpu-usage-like-in-openlens/1239 "2022-10-12T09:38:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TGotwig](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/tgotwig/32/542_2.png) [@TGotwig](https://discuss.prometheus.io/u/TGotwig)\
**Post date:** [October 12, 2022, 9:38am UTC](https://discuss.prometheus.io/t/metric-for-cpu-usage-like-in-openlens/1239/1 "2022-10-12T09:38:55Z")

</div>

Hello there 🙋

I’m quite new to Prometheus and I don’t know how to reproduce the very first metric `Usage` from OpenLens through Prometheus:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/6291731cdf2346ac25cc9deef50a4c06b448ae4a.png)

For all others there seems to be a metric but not for `Usage`:

- kube\_pod\_container\_resource\_requests\_cpu\_cores
- kube\_pod\_container\_resource\_limits\_cpu\_cores
- kube\_node\_status\_allocatable\_cpu\_cores
- kube\_node\_status\_capacity\_cpu\_cores

I’m using this: [GitHub - prometheus/node\_exporter: Exporter for machine metrics](https://github.com/prometheus/node_exporter)

---

<div class="post-metadata">

**Author:** ![TGotwig](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/tgotwig/32/542_2.png) [@TGotwig](https://discuss.prometheus.io/u/TGotwig)\
**Post date:** [November 2, 2022, 7:52am UTC](https://discuss.prometheus.io/t/metric-for-cpu-usage-like-in-openlens/1239/2 "2022-11-02T07:52:23Z")

</div>

Found my answer in the code 😊👍
