question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CPU metrics mismatch

See original GitHub issue

Describe 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:

  1. Deploy APM enabled node application to a container (Linux).
  2. Compare container stats to APM data
  3. Compare process metrics within the container to APM data
  4. 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

metrics-comapre

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
watsoncommented, May 13, 2019

Thanks for reporting this bug. I’m able to reproduce it and we’ll look into what’s going on.

0reactions
vivek-shethcommented, May 27, 2019

Thank you @watson for fixing it. 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found