CPU metrics mismatch
See original GitHub issueDescribe the bug APM agent often pushes 0% process and system CPU usage, it should have at least some value greater than zero as the process is still running. Even comparing the stats on the container itself does not match the CPU usage provided by APM.
To Reproduce Steps to reproduce the behavior:
- Deploy APM enabled node application to a container (Linux).
- Compare container stats to APM data
- Compare process metrics within the container to APM data
- Screenshot of this comparison attached.
Expected behavior APM agent should push correct CPU metrics instead of 0%
Environment (please complete the following information)
- OS: Linux
- Node.js version: 8.10.0
- APM Server version: 6.7.0
- Agent version: 2.6.0, 2.11.1
How are you starting the agent? (please tick one of the boxes)
- Calling
agent.start()
directly (e.g.require('elastic-apm-node').start(...)
) - Requiring
elastic-apm-node/start
from within the source code - Starting node with
-r elastic-apm-node/start
Additional context Add any other context about the problem here.
- Screenshot
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:5 (3 by maintainers)
Top Results From Across the Web
CPU usage mismatch or usage over 100%
In Infrastructure, CPU percent usage is measured differently depending on if you are viewing CPU usage in relation to hosts, or to processes....
Read more >Data mismatch with historical and real time data for CPU and ...
Data mismatch with historical and real time data for CPU and memory metrics · Collection interval: 5 mins for historic and 10 sec...
Read more >DPA 12.1.7 Showing CPU mismatch information OS CPU ...
This is a problem with 12.1 that occurs typically when there is a high number of cores. The problem has been fixed in...
Read more >Why does top report a different cpu usage than CloudWatch?
In the example above, the m1.small EC2 instance was allocated 0.4 processor units and so 40% CPU busy means the percentage usage of...
Read more >CPU usage does not match the CPU usage in Task Manager
cpu.metrics: ["percentages", "normalized_percentages"] # The other available options are normalized_percentages and ticks.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for reporting this bug. I’m able to reproduce it and we’ll look into what’s going on.
Thank you @watson for fixing it. 👍