Skip to content

Use perf_hooks monitorEventLoopDelay() instead of own monitoring #331

Description

@voxpelli

Since Node v11.10.0 Node.js has built in support for monitoring event loop delay: https://nodejs.org/api/perf_hooks.html#perf_hooks_perf_hooks_monitoreventloopdelay_options

I would suggest to use that rather than then current tracking:

https://github.com/siimon/prom-client/blob/9b4ef105cbc914e0ca50d9fbca9113deeb3db663/lib/metrics/eventLoopLag.js#L26-L27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions