Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

rpc metrics #8677

@gabreal

Description

@gabreal

There are currently no metrics for observing the load of RPC queries in the substrate/polkadot client. These would be very valuable to understand the load of an RPC node and to detect patterns and application behaviours.

Thus metrics could be added that would count the methods called (with an unknown method label for malformed requests). Additionally metrics for successful and erroneous requests would be good (with response codes). Timings of these RPC calls would be a plus but not be collected per default.

For keeping the number of metrics limited overall the exposure of such metrics could be made dependent on logging flags e.g. -l rpc=verbose.

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