-
Notifications
You must be signed in to change notification settings - Fork 232
Add metrics for external memory #1724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add metrics for external memory #1724
Conversation
💚 CLA has been signed |
9706e8a
to
7d8b7aa
Compare
Use `process.memoryUsage()` instead of `v8.getHeapStatistics()`
7d8b7aa
to
dcf784f
Compare
Added metrics for `nodejs.memory.external.bytes` and `nodejs.memory.arrayBuffers.bytes`
dcf784f
to
95fa1fb
Compare
@elasticmachine, run elasticsearch-ci/docs |
Anything postponing this? I'd like to have it in soon to monitor long-term memory development of the C-libraries of my node-application. |
Hi, |
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @SimonSimCity, the code looks good to me
@axw One question on the APM Server part. Do we control the custom metrics in any way or we can keep adding new ones whenever we find the use-case for it?
@elasticmachine, run elasticsearch-ci/docs |
@vigneshshanmugam as long as there's a clear use-case for it, it's fine to add new metrics. It's best to align across agents where we can, but these ones are pretty Node.js-specific so no worries there. |
Add the following new metrics: - `nodejs.memory.external.bytes` - `nodejs.memory.arrayBuffers.bytes`
This ticket adds some metrics missing of #309.
I've added the metrics
nodejs.memory.external.bytes
andnodejs.memory.arrayBuffers.bytes
(available from node 13.x).All memory related data is now collected using
process.memoryUsage()
which has a better documentation than the internal v8 methods: https://nodejs.org/docs/latest/api/process.html#process_process_memoryusageChecklist