elastic / elastic/apm-agent-nodejs

Collect eventLoopUtilization metric

Open
#2,639 1 comment 0 reactions 0 assignees View on GitHub
8.3-candidate agent-nodejs community enhancement kibana
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

nodejs supports collecting `eventLoopUtilization(ELU)` metric [out of the box](https://nodejs.org/api/perf_hooks.html#performanceeventlooputilizationutilization1-utilization2). from the [introduction article](https://nodesource.com/blog/event-loop-utilization-nodejs):
```
The simplest definition of event loop utilization (or ELU) is the ratio of
time the event loop is not idling in the event provider to the total time the event loop is running.
```
ELU can be a more helpful metric than CPU usage in % since it allows to exclude other processes from the equation. I'd suggest the APM agent collect ELU by default for the environments that support this functionality.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.