# CPU metrics by Java APM Agent

**URL:** <https://discuss.elastic.co/t/cpu-metrics-by-java-apm-agent/185862>\
**Category:** APM\
**Tags:** java\
**Created:** [June 14, 2019, 1:30pm UTC](https://discuss.elastic.co/t/cpu-metrics-by-java-apm-agent/185862 "2019-06-14T13:30:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ea1987](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ea1987/32/51356_2.png) [@ea1987](https://discuss.elastic.co/u/ea1987)\
**Post date:** [June 14, 2019, 1:30pm UTC](https://discuss.elastic.co/t/cpu-metrics-by-java-apm-agent/185862/1 "2019-06-14T13:30:23Z")

</div>

Hi guys,  
I would like to know if CPU metrics are planned to be collected by Java APM Agent.  
Right now they aren't, as explained by documentation and according to some tests I performed with Java APM Agent v 1.6.1. I had to make up for this lack using metricbeat (enabling system module) and collect cpu metric of the unix process.

Thanks,

Andrea

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [June 14, 2019, 2:40pm UTC](https://discuss.elastic.co/t/cpu-metrics-by-java-apm-agent/185862/2 "2019-06-14T14:40:27Z")

</div>

Hi 🙂

the Java agent does support CPU metrics: [https://www.elastic.co/guide/en/apm/agent/java/current/metrics.html](https://www.elastic.co/guide/en/apm/agent/java/current/metrics.html)

You can view those by clicking on the metrics tab of the service overview. See [https://www.elastic.co/guide/en/kibana/current/metrics.html](https://www.elastic.co/guide/en/kibana/current/metrics.html)

Cheers,  
Felix

---

<div class="post-metadata">

**Author:** ![ea1987](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ea1987/32/51356_2.png) [@ea1987](https://discuss.elastic.co/u/ea1987)\
**Post date:** [June 17, 2019, 9:05am UTC](https://discuss.elastic.co/t/cpu-metrics-by-java-apm-agent/185862/3 "2019-06-17T09:05:11Z")

</div>

Hi Felix,  
thank you. It seems that I didn't notice that metric. I will anyway update the whole ELK stack since I can't see that metrics tab in old Kibana versions.  
Thanks,

Andrea

---

<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:** [July 8, 2019, 5:05am UTC](https://discuss.elastic.co/t/cpu-metrics-by-java-apm-agent/185862/4 "2019-07-08T05:05:16Z")

</div>

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