mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-06 02:07:07 +00:00
The five Close Time panels (Raw Proposals, Effective/Quantized, Vote Bins & Resolution, Resolution Direction, Bin Distribution) rendered empty: they used TraceQL `| select(attr)`, which returns a trace list that a timeseries/barchart panel cannot plot. Enable TraceQL metrics in Tempo and rewrite the panels to use it: - tempo.yaml: add the local-blocks processor to the metrics generator so recent blocks are queryable via /api/metrics/query_range. Set filter_server_spans=false because the consensus spans are SPAN_KIND_INTERNAL (the default keeps only server spans, so attribute aggregations over internal spans returned nothing), and flush_to_storage=true with a traces_storage path so query_range can read the flushed blocks. - consensus-health.json: replace each panel's select() with a metrics query — quantile_over_time on the integer close-time attributes, avg_over_time for vote bins / resolution, and count_over_time by the resolution_direction and vote-bin dimensions. Set the raw/effective panels' unit to seconds (the values are Ripple-epoch seconds, which dateTimeFromNow rendered with the wrong epoch). Verified the query forms compile and return series against live internal spans; the close-time series populate once the node reaches full sync. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>