# APM - No system metrics

**URL:** https://discuss.elastic.co/t/apm-no-system-metrics/189016
**Category:** APM
**Tags:** java
**Created:** [July 5, 2019, 6:54am UTC](https://discuss.elastic.co/t/apm-no-system-metrics/189016 "2019-07-05T06:54:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![RichardH](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@RichardH](https://discuss.elastic.co/u/RichardH)
#### Post date: [July 5, 2019, 6:54am UTC](https://discuss.elastic.co/t/apm-no-system-metrics/189016/1 "2019-07-05T06:54:38Z")

</div>

Hello,

I found a previous topic that said the system metrics in APM are not currently available

> [@Elastic APM System Metrics fields data not being captured](https://discuss.elastic.co/t/elastic-apm-system-metrics-fields-data-not-being-captured/153717):
>
> Hi, I have configured Elasticsearch APM plugin & I am able to see most of the data except for system metric in which I am more interested. From the indices definition I can find list of system metrics fields as mentioned over here too: [https://www.elastic.co/guide/en/apm/server/current/exported-fields-system.html](https://www.elastic.co/guide/en/apm/server/current/exported-fields-system.html) But in discover tab I am not actually able to find any system metric level data, Currently I have configured " APM Node.js Agent" ([https://www.elastic.co/guide/en/apm/agent/nodejs/c…](https://www.elastic.co/guide/en/apm/agent/nodejs/current/index.html)

Is there any change to this? - I am just trying to confirm if me not getting metrics is a configuration issue or not.

Thanks

---

<div class="post-metadata">

### Author: ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)
#### Post date: [July 5, 2019, 7:10am UTC](https://discuss.elastic.co/t/apm-no-system-metrics/189016/2 "2019-07-05T07:10:30Z")

</div>

Hi Richard,

Welcome to the forum! All of the agents except for RUM capture a handful of common system metrics:

- system/process CPU usage
- system/process memory usage

Apart from those, recent versions of the agents collect additional runtime-specific metrics.

Which agent(s) are you using, and which version of the stack?

---

<div class="post-metadata">

### Author: ![RichardH](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@RichardH](https://discuss.elastic.co/u/RichardH)
#### Post date: [July 5, 2019, 8:08am UTC](https://discuss.elastic.co/t/apm-no-system-metrics/189016/3 "2019-07-05T08:08:36Z")

</div>

Hi Andrew,

Thanks for the reply.

I am using version 7.1.1 monitoring a Tomcat Java app server. To set it up I copied the elastic-apm-agent-1.7.0.jar file to the app server and edited the wrapper.conf in Tomcat with the following:

wrapper.java.additional.9=-Delastic.apm.service\_name=tomcat,swee-cis,swee-lpa,swee-lps,swee-mobs-server,swee-mwb,swee-portal,swee-sdc

wrapper.java.additional.10=-Delastic.apm.application\_packages=\*

wrapper.java.additional.11=-Delastic.apm.server\_urls=http://hostname:8200

wrapper.java.additional.12=-javaagent:/\<agent\_dir\>/elastic-apm-agent-1.7.0.jar

update - I have upgraded to 7.2. The Metric dashboard now looks different as it includes charts for Heap memory, but still no data. If I look at the events coming through there is nothing that identifies the system name. My guess is I have missed something on the config.

---

<div class="post-metadata">

### Author: ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)
#### Post date: [July 7, 2019, 2:48am UTC](https://discuss.elastic.co/t/apm-no-system-metrics/189016/4 "2019-07-07T02:48:30Z")

</div>

Hi Richard,

> [@RichardH](#):
>
> wrapper.java.additional.9=-Delastic.apm.service\_name=tomcat,swee-cis,swee-lpa,swee-lps,swee-mobs-server,swee-mwb,swee-portal,swee-sdc

This config option doesn't support a list, only a single value. You can either omit this config (in order to get a service per web application in your tomcat) or use with a single value for a service name to be used for the entire tomcat. Please read [the documentation](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-service-name). If you omit the `service_name` in order to rely on automatic service name discovery - be aware of the caveat documented regarding metrics. Otherwise- use a single value.

> [@RichardH](#):
>
> wrapper.java.additional.10=-Delastic.apm.application\_packages=\*

Not a valid config for this. Instead, use the root package for your app code (eg `co.elastic`) or a comma-separated list of packages (eg `co.elastic,org.elasticsearch`).

I hope this helps,  
Eyal.

---

<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 27, 2019, 10:48pm UTC](https://discuss.elastic.co/t/apm-no-system-metrics/189016/5 "2019-07-27T22:48:44Z")

</div>

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