Menu
Choose a product
Scroll for more
Documentation
Grafana Cloud
Knowledge graph
Advanced configuration
Enable metrics collection
Run times
NodeJS
Grafana Cloud
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
Additional helpful documentation, links, and articles:
Video

Getting started with managing your metrics, logs, and traces using Grafana
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
Video

Intro to Kubernetes monitoring in Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.
Video

Building advanced Grafana dashboards
In this webinar, we’ll demo how to build and format Grafana dashboards.