# How can we check per process CPU utilization

**URL:** <https://forums.percona.com/t/how-can-we-check-per-process-cpu-utilization/31842>\
**Category:** Percona Monitoring and Management (PMM)\
**Created:** [July 26, 2024, 5:44pm UTC](https://forums.percona.com/t/how-can-we-check-per-process-cpu-utilization/31842 "2024-07-26T17:44:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naresh9999](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/naresh9999/32/5568_2.png) [@Naresh9999](https://forums.percona.com/u/Naresh9999)\
**Post date:** [July 26, 2024, 5:44pm UTC](https://forums.percona.com/t/how-can-we-check-per-process-cpu-utilization/31842/1 "2024-07-26T17:44:39Z")

</div>

## Description:

How can I find per process CPU utilization? I would like to check the previous process utilization history in the PMM.

EX:  
MariaDB - 50%  
PostgteSQL - 60%  
rundeck - 60%  
java - 10%

We are looking at CPU, memory, I/O, load, latency, etc. history per process like this.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/9/3/932dcd8b94bc03f00fa965276862e9492b774736.png)

---

<div class="post-metadata">

**Author:** ![kedarpercona](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kedarpercona/32/809_2.png) [@kedarpercona](https://forums.percona.com/u/kedarpercona)\
**Post date:** [July 28, 2024, 7:46am UTC](https://forums.percona.com/t/how-can-we-check-per-process-cpu-utilization/31842/2 "2024-07-28T07:46:59Z")

</div>

Hi @Naresh9999,  
I don’t think PMM collects all the processes’c pu history. If you need that, you probably will have to use the manual metric insertion… something like using textfile exporter. Leaving some references below.  
Thanks,  
K.

[![](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/2/2b05995762124e707195b168ec8c7a09651a7c6a.jpeg "Extending Percona Monitoring and Management With Custom Collectors - Agustin Gallego") ](https://www.youtube.com/watch?v=kKfcqU70Dmc)

> **[Percona Monitoring and Management - Extend Metrics](https://docs.percona.com/percona-monitoring-and-management/how-to/extend-metrics.html)**
>
> When you need a metric that’s not present in the default list of node\_exporter metrics you may be able to use the textfile collector.
> The textfile collector allows exporting of statistics from batch jobs. It can also be used to export static metrics,...

> **[Extend Metrics for Percona Monitoring and Management Without Modifying Code](https://www.percona.com/blog/extend-metrics-for-percona-monitoring-and-management-without-modifying-code/)**
>
> If you need to extend PMM Percona Monitoring and Management to collect new metrics, you may not need new code. Software Engineer Vadim Yalovets shows how.

---

<div class="post-metadata">

**Author:** ![Roma\_Novikov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/roma_novikov/32/1161_2.png) [@Roma\_Novikov](https://forums.percona.com/u/Roma_Novikov)\
**Post date:** [July 29, 2024, 11:27am UTC](https://forums.percona.com/t/how-can-we-check-per-process-cpu-utilization/31842/3 "2024-07-29T11:27:51Z")

</div>

@Naresh9999, this feature is not available out of the box yet. However, we are considering using [GitHub - ncabatoff/process-exporter: Prometheus exporter that mines /proc to report on selected processes](https://github.com/ncabatoff/process-exporter) for this in the future. We don’t have an estimated time of arrival for this feature at the moment.

You can attempt to make this exporter work with PMM today using the External Services feature. Please refer to Tibi’s blog post on ValKey at [How to Monitor Valkey/Redis with Percona Monitoring and Management](https://www.percona.com/blog/how-to-monitor-valkey-redis-with-percona-monitoring-and-management/). You can use a different exporter and try the process exporter there.

Please keep us posted on how this goes!

---

<div class="post-metadata">

**Author:** ![Naresh9999](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/naresh9999/32/5568_2.png) [@Naresh9999](https://forums.percona.com/u/Naresh9999)\
**Post date:** [July 30, 2024, 6:29pm UTC](https://forums.percona.com/t/how-can-we-check-per-process-cpu-utilization/31842/4 "2024-07-30T18:29:43Z")

</div>

Sure @Roma_Novikov

Thanks for the detailed information.

I will try to implement this and let you know.
