Skip to content
Discussion options

You must be logged in to vote

Great question — there are two separate things going on here that are worth clarifying.

Why you only see v8js_memory* metrics

The v8js_* metrics come from @opentelemetry/instrumentation-runtime-node, which is included inside getNodeAutoInstrumentations(). These metrics reflect V8 heap memory (the JavaScript engine's managed memory), not the full process RSS memory or CPU usage. That's expected behavior from auto-instrumentation.

Getting process CPU and Memory (RSS) metrics

You were on the right track with @opentelemetry/host-metrics — but there's a misconception: this package reports both host/system-level metrics AND process-level metrics for the Node.js process itself. Specifically, it …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dev-samples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants