You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rpc-extractor: offer RPC fetch timings and errors via a prometheus server #201
#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
@GuiSchet I deployed #339 to the demo nodes earlier to day and it was helpful already!
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
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?
Activity
GuiSchet commentedon Jan 6, 2026
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.
0xB10C commentedon Mar 11, 2026
@GuiSchet I deployed #339 to the demo nodes earlier to day and it was helpful already!
Turns out that we weren't publishing
getrawaddrmanRPC 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 7113149change: increase max NATS msg size to 15MB
change: increase max NATS msg size to 15MB
GuiSchet commentedon Mar 12, 2026
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?
0xB10C commentedon Mar 12, 2026
Feel free to open a followup issue (or PR)!