Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana-cloud/knowledge-graph/advanced-configuration/enable-prom-metrics-collection/runtimes/nodejs.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana-cloud/knowledge-graph/advanced-configuration/enable-prom-metrics-collection/runtimes/nodejs/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
Configure NodeJS to generate Prometheus metrics
To configure NodeJS to generate Prometheus metrics, refer to Prometheus NodeJS Exporter.
Metrics and KPIs
| Metric | KPI |
|---|---|
Memory
| Utilization in k8s
Utilization in non k8s
|
CPU
| Utilization in k8s
Utilization in non k8s
|
Dashboard
In addition to these KPIs, the KPI dashboard includes the following NodeJS runtime metrics.
Heap usage
- nodejs_heap_size_total_bytes
- nodejs_heap_size_used_bytes
- nodejs_heap_space_size_used_bytes
Event loop latency
- nodejs_eventloop_lag_seconds
- nodejs_eventloop_lag_p99_seconds
GC duration and count
- rate(nodejs_gc_duration_seconds_sum[5m])
- rate(nodejs_gc_duration_seconds_count[5m])
Active handles and requests
- nodejs_active_handles_total
- nodejs_active_reqeuests_total
File handles
- process_open_fds
- process_max_fds

Was this page helpful?
Related resources from Grafana Labs


