Skip to content

Polling system metrics #3686

@armanbilge

Description

@armanbilge

We should figure out what kinds of metrics we want to collect and how to expose them in the API. cc @iRevive

A couple ideas:

  1. libuv reports an "idle time" metric. we could measure this per-thread, and actually this is not specific to the polling system at all, this is a general property of the WSTP.

    Retrieve the amount of time the event loop has been idle in the kernel’s event provider (e.g. epoll_wait).

    https://docs.libuv.org/en/v1.x/metrics.html#c.uv_metrics_idle_time

  2. number of outstanding channels/file descriptors/interest events, also per-thread. would be interesting to see if this balances across threads. on the JVM, we could break this into additional categories: # TCP sockets, # server sockets, etc.

Linking to:

Follow-up to:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions