1
votes

I am running a sample application jar on local system using elasticAPM agent. Elastic APM show 2 different cpu stats (system/process).

Metrics explanation on official site says the same thing for both stats https://www.elastic.co/guide/en/apm/server/current/exported-fields-system.html

Please explain, Is the "system cpu stats" is of my system even when the agent is connected to application.jar only using java command? If so, how can I check on elastic apm what else on my system in consuming cpu since only application is running during the load test.

java -javaagent:<agent.jar> -jar <app.jar>

The CPU usage shown below enter image description here

1

1 Answers

1
votes

The metrics shown in Kibana are sent by the APM agent that like you said has limited access to your environment. It basically says anything that is collected by the JVM running your JAR.

If you want to get further visibility into the CPU details of your local environment then you must augment your setup using Elastic MetricBeats that ships O.S level details about your machine that sees beyond what the JVM can see.

In the presentation below I show how to configure logs, metrics, and APM altogether.

https://www.youtube.com/watch?v=aXbg9pZCjpk