Skip to content

rpc-extractor: offer RPC fetch timings and errors via a prometheus server #201

Closed

Description

@0xB10C

#191 logs RPC fetch errors, but these can easily be missed. Since we use Prometheus in tools already, we can use the metricserver.rs from shared in the rpc-extractor too.

  • metric for RPC fetch errors
  • metric for NATS publish errors
  • metric for RPC fetch times (milliseconds it took for us to get the result from an RPC). this is a good indication of a node being overloaded
  • ...

Activity

  1. added
    enhancement
    help wanted
    good first issue
    on Aug 18, 2025
  2. GuiSchet commented on Jan 6, 2026

    @GuiSchet
    Contributor

    I'm going to analyze the best way to implement this feature. 'll submit the PR once we've closed the currently open PRs to keep things organized.

  3. 0xB10C commented on Mar 11, 2026

    @0xB10C
    CollaboratorAuthor

    @GuiSchet I deployed #339 to the demo nodes earlier to day and it was helpful already!

    Image

    Turns out that we weren't publishing getrawaddrman RPC calls to NATS since these events can be quite big: ERROR [rpc_extractor] Could not fetch and publish 'getrawaddrman': NATS publish error max payload size exceeded: Payload size limit of 5242880 exceeded by message size of 7113149

  4. GuiSchet commented on Mar 12, 2026

    @GuiSchet
    Contributor

    I'm really glad to hear that it's proving useful! 🙌

    Huge thanks to @deadmanoz for all the review work and refactoring proposals.

    Also, regarding a pending item from that PR (#339): @deadmanoz brought up some good points about the endpoint paths (since the server currently returns metrics on all paths). Since we might want to modify how we handle these routes in general in the future, should we open a new issue to discuss and adjust this topic?

  5. 0xB10C commented on Mar 12, 2026

    @0xB10C
    CollaboratorAuthor

    Feel free to open a followup issue (or PR)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wantedrpc-extractor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions