Repository navigation
feat(metrics): add RPC requests panel and per-node Overview tables - #224
Conversation
Add an "RPC Requests (Per Minute) By Role" panel to the RPC row, mirroring the per-node request-volume view operators use for geth's rpc_requests. Existing panels are unchanged. The panel sums reth_rpc_server_calls_started_total per service. Unlike requests_started_total or calls_successful_total, it counts every entry of a batch request and includes failed calls. reth only installs the RPC metrics layer on the HTTP/WS/IPC servers, so Engine API calls on the authenticated port are excluded.
There was a problem hiding this comment.
Claude Code Review
Claude Code Review is paused for this repository because its GitHub organization is not linked to your Claude organization.
To turn it back on, one person needs both roles: owner of the GitHub organization (or the account owner, for a personal repository) and admin or owner of your Claude organization. If that is not you, pass this on to someone who is.
Open Organization settings, Git providers and click Link next to the GitHub organization's name. If it is not listed, click Enable GitHub integration or Connect your GitHub first, whichever the page shows.
New pull requests are then reviewed as before. To get a review on one that is already open, someone with write access can comment @claude review.
Tip: disable this comment in your organization's Code Review settings.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
RPC call-rate panel etc/grafana/dashboards/morph-reth.json |
Adds a timeseries panel using reth_rpc_server_calls_started_total, filtered by chain, role, and service. It displays the rate per minute, grouped by service. The description identifies included and excluded calls. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Feature
Merge Risk: 
Minimal · previous review a2308
-
The new RPC request-rate panel is mergeable after normal checks; the suspected aggregation issue is not supported by the configured metrics source.
Pre-merge checks: 
3 · 
1
-
Failed checks: 1 warning Passed checks: 3 passed -
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
Fix failing CI checks
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
09a7c694-16db-43c2-b681-f1f0534e867e
📒 Files selected for processing: 1
-
etc/grafana/dashboards/morph-reth.json
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
09a7c694-16db-43c2-b681-f1f0534e867e
📒 Files selected for processing: 1
-
etc/grafana/dashboards/morph-reth.json
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
-
With more than one service selected the Overview panels became unreadable: Build Info rendered every node's values side by side in a single stat row so they overlapped, and Database / Freelist / Static Files / Total each summed over all services, leaving one number with no way to tell which node it came from. Render both as tables with one row per node instead: - Build Info is now a table keyed by `service`, one row per node with its version, git SHA, build time, profile, target and features. - The four storage stat panels and the 3-wide Header Height column are folded into a single "Node Storage & Height" table. Each metric is a separate `format: table` target grouped with `sum by (service)`, then joined on `service` with an outer join so a node missing one metric still shows up. The global `sum()` is kept per service, so each row matches what the old panels reported in aggregate. Panels below the Overview row shift down by 5 grid units to make room; the collapsed rows keep their relative offsets to their children. Verified by rendering the dashboard in a local Grafana 12.2.1 against a Prometheus scraping five synthetic services: all five nodes appear as distinct rows in both tables and every value is attributable.
There was a problem hiding this comment.
Claude Code Review
Claude Code Review is paused for this repository because its GitHub organization is not linked to your Claude organization.
To turn it back on, one person needs both roles: owner of the GitHub organization (or the account owner, for a personal repository) and admin or owner of your Claude organization. If that is not you, pass this on to someone who is.
Open Organization settings, Git providers and click Link next to the GitHub organization's name. If it is not listed, click Enable GitHub integration or Connect your GitHub first, whichever the page shows.
New pull requests are then reviewed as before. To get a review on one that is already open, someone with write access can comment @claude review.
Tip: disable this comment in your organization's Code Review settings.
Grafana lays panels out in fixed grid units and a table panel does not grow with its row count, so the per-node tables clipped their rows: with three nodes there was dead space under the table, and with more nodes the rows past the panel bottom were unreachable. Enable pagination on both tables and size them for the production layout. Each role runs three nodes, so a 7-unit panel shows exactly one full page of three rows with no wasted space; selecting more services adds pages instead of hiding nodes. Panels below the Overview row shift up by 2 grid units accordingly.
Grafana moved the table pagination flag: before 12.2 the table panel reads `options.footer.enablePagination`, from 12.2 on it reads a top-level `options.enablePagination` (grafana/grafana TablePanel.tsx at v12.1.0 vs v12.2.0). Only the top-level key was set, so on older deployments the flag was silently ignored and rows past the panel bottom stayed unreachable — the panel was shorter but showed no pager. Set both keys so the tables paginate on either version. Verified by rendering in Grafana 12.1.0 and 12.2.1: both now show `1-3 of 12 rows` with four working pages.
There was a problem hiding this comment.
Claude Code Review
Claude Code Review is paused for this repository because its GitHub organization is not linked to your Claude organization.
To turn it back on, one person needs both roles: owner of the GitHub organization (or the account owner, for a personal repository) and admin or owner of your Claude organization. If that is not you, pass this on to someone who is.
Open Organization settings, Git providers and click Link next to the GitHub organization's name. If it is not listed, click Enable GitHub integration or Connect your GitHub first, whichever the page shows.
New pull requests are then reviewed as before. To get a review on one that is already open, someone with write access can comment @claude review.
Tip: disable this comment in your organization's Code Review settings.
Summary
Two dashboard changes in
etc/grafana/dashboards/morph-reth.json:rpc_requests).1. RPC Requests (Per Minute) By Role
Grouping by
servicefollows the existing "Engine API Failures By Role" panel. Unit isreqpm, which Grafana displays asreq/m. Existing panels, including RPC Throughput, are unchanged.Why
calls_started_totalreth_rpc_server_connections_requests_started_totalonly counts non-batch requests, andcalls_successful_total/calls_failed_totalare never incremented for batch entries: jsonrpsee 0.26 dispatches batch entries through the innermost service, bypassing the metrics layer'scall().rpc_requests.Difference from geth's
rpc_requestsgeth's counter is a package-level global in its
rpcpackage, so it also counts calls on the authenticated Engine API port (morphnode'sengine_*calls on 8551). reth installs the RPC metrics layer only on the HTTP/WS/IPC servers, not on the auth server, so this panel excludes Engine API traffic. That is intended: the panel tracks public RPC load.When a node is switched from geth to morph-reth, this panel will read lower than the geth panel by the Engine API call volume, even with identical external traffic. geth's Engine API share can be read from
rpc_duration_engine_*_count. morphnode's owneth_*calls over HTTP are counted on both clients.2. Overview: per-node build info and storage
With more than one service selected the Overview row was unreadable:
sum()across all services, leaving a single number with no way to tell which node it came from. Header Height had the same crowding problem in a 3-wide column.Both are now tables with one row per node:
service: version, git SHA, build time, profile, target and features per node. Onemax by (service, <build labels>)target replaces the six per-field targets.format: tabletarget grouped withsum by (service), then joined onservicewith an outer join so a node missing one metric still appears. Keepingsumscoped per service means each row matches what the old panels reported in aggregate.3. Pagination for both tables
Panel height in Grafana is a fixed number of grid units and a table panel does not grow with its row count, so the per-node tables clipped their rows: three nodes left dead space under the table, and more nodes made the rows past the panel bottom unreachable.
Both tables now enable pagination and are sized for the production layout — each role runs three nodes, so a 7-unit panel shows exactly one full page of three rows with no wasted space. Selecting more services adds pages rather than hiding nodes: with 12 nodes the tables show
1-3 of 12 rowsand four pages.The flag is written in both places Grafana has used for it:
options.footer.enablePagination(read by the table panel up to and including 12.1) and the top-leveloptions.enablePagination(read from 12.2 on). Setting only the top-level key makes older deployments silently ignore it — the panel gets shorter but shows no pager, so rows stay unreachable.Collapsed rows keep the same offsets from their row to their children as before.
Testing
jq emptypasses on the dashboard JSON.1-3 of 12 rowswith four working pages, so no node is hidden.