SkeLLLa / fastify-metrics

Prometheus metrics exporter for Fastify
https://savelife.in.ua/en/donate-en/
MIT License
100 stars 33 forks source link

Include Event Loop Utilization #59

Closed mcollina closed 2 years ago

mcollina commented 2 years ago

We could include https://nodejs.org/api/perf_hooks.html#performanceeventlooputilizationutilization1-utilization2 to the list of official metrics. A few more explanation reads:

https://nodesource.com/blog/event-loop-utilization-nodejs https://www.nearform.com/blog/event-loop-utilization-with-hpa/

SkeLLLa commented 2 years ago

I think it's better to add this one to prom-client, so it become available not only in fastify-metrics. There are already some legacy event loop metrics, but they come from node 4 age.