question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Event loop health metric

See original GitHub issue

It would be helpful to have a prometheus metric for event loop health, probably measured in terms of time.

Today we have a digest, but this depends on crick which has proven less reliable. Crick might also be overkill for this. Maybe it makes sense to keep an exponentially weighted moving average over, say, the last ten seconds or the last minute.

cc @fjetter , thoughts?

cc @ntabris @dchudz

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
fjettercommented, Nov 15, 2022

Max seems not granular enough. Ideally we would see, for example, that during disk writes the event loop health degrades. OK great, we should probably avoid disk.

It’s a max between prometheus polls. not global max

0reactions
mrocklincommented, Nov 15, 2022

Oh yeah, if it’s between polls then I’m good. Sorry for the confusion. I should have read the code more.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js Event Loop and its Metrics: All you need to know
The event loop latency measures how long it additionally takes until a task scheduled with setTimeout(X) really gets processed. A high event ...
Read more >
Introduction to Event Loop Utilization in Node.js
Event Loop in Node.js. The simplest definition of event loop utilization is the ratio of time the event loop is not idling in...
Read more >
Introduction to Event Loop in Node js: Metrics, Timers, ...
The Event Loop executes the timers phase directly. The Event Loop changes its own time at the start of this phase. The timers...
Read more >
An Exploration of Runtime Metrics: Node's Event Loop
The event loop is how node schedules everything making up a node program: JavaScript code, IO, timers, promises, and callbacks.
Read more >
event-loop-stats - npm Package Health Analysis
Learn more about event-loop-stats: package health score, popularity, security, maintenance, versions and more. ... @opentelemetry/api-metrics.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found