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
Add span/metric/Grafana reference to telemetry runbook
Documents the complete telemetry pipeline: 10 span names with source
files and attributes, 4 Prometheus metrics from the spanmetrics
connector, dimension-to-label mappings, and per-panel PromQL queries
for all 3 Grafana dashboards. Includes a summary table mapping each
span to its Prometheus filter and Grafana dashboard.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|`consensus.ledger_close`| RCLConsensus.cpp:282 |`xrpl.consensus.ledger.seq`, `xrpl.consensus.mode`| Ledger close event |
85
+
|`consensus.accept`| RCLConsensus.cpp:395 |`xrpl.consensus.proposers`, `xrpl.consensus.round_time_ms`| Ledger accepted by consensus |
86
+
|`consensus.validation.send`| RCLConsensus.cpp:753 |`xrpl.consensus.ledger.seq`, `xrpl.consensus.proposing`| Validation sent after accept |
87
+
88
+
## Prometheus Metrics (Spanmetrics)
89
+
90
+
The OTel Collector's spanmetrics connector automatically derives RED (Rate, Errors, Duration) metrics from every span. No custom metrics code is needed in rippled.
| RPC Request Rate by Command | timeseries |`sum by (xrpl_rpc_command) (rate(traces_span_metrics_calls_total{span_name=~"rpc.command.*"}[5m]))`|`xrpl_rpc_command`|
138
+
| RPC Latency p95 by Command | timeseries |`histogram_quantile(0.95, sum by (le, xrpl_rpc_command) (rate(traces_span_metrics_duration_milliseconds_bucket{span_name=~"rpc.command.*"}[5m])))`|`xrpl_rpc_command`|
139
+
| RPC Error Rate | bargauge | Error spans / total spans × 100, grouped by `xrpl_rpc_command`|`xrpl_rpc_command`, `status_code`|
| Transaction Path Distribution | piechart |`sum by (xrpl_tx_local) (rate(traces_span_metrics_calls_total{span_name="tx.process"}[5m]))`|`xrpl_tx_local`|
149
+
| Transaction Receive vs Suppressed | timeseries |`rate(traces_span_metrics_calls_total{span_name="tx.receive"}[5m])`| — |
0 commit comments