Skip to content

refactor: simplify the encoding and decoding of tx - #3

Merged
chengwenxi merged 4 commits into
mainfrom
feat/panos-reth
Jan 5, 2026
Merged

chengwenxi merged 4 commits into
mainfrom
feat/panos-reth

Conversation

@panos-xyz

Copy link
Copy Markdown
Contributor

No description provided.

@chengwenxi
chengwenxi merged commit d9556ce into main Jan 5, 2026
@chengwenxi
chengwenxi deleted the feat/panos-reth branch January 5, 2026 02:21
panos-xyz added a commit that referenced this pull request Nov 24, 2026
… restarts

Extend PR 233's series-churn fix from State & History Growth to the rest of
the morph-reth Grafana dashboard so long time ranges (30d/60d/90d) render
accurately when pod restarts or redeploys change the instance label:

- Snapshot pie charts and bar gauge (#3, #45, #47, #51, #104): switch to
  instant queries and aggregate with max by (service, ...) (two-level sum/max
  for DB Pages) so historical dead instances no longer duplicate slices.
- Broken aggregations (#39 DB Average Commit Time, #41 DB Average Transaction
  Open Time, #120 CPU, #40/#62/#64 heatmaps): compute weighted averages via
  sum(rate(sum)) / sum(rate(count)) instead of summing/averaging per-series
  ratios, fix CPU from avg(rate(...[1m])) to sum(rate(...[$__rate_interval])),
  and use max for peak latency heatmaps.
- Unaggregated rate/increase panels (17 panels, e.g. Block Import Rate, Engine
  Tree, Proof History, TxPool, P2P) and rate(sum)/rate(count) panels (9 panels):
  aggregate with sum by (service[, segment]) to eliminate multi-hour 50% dips
  and duplicate legends at restart boundaries.
- Raw gauge sum-by-service panels (14 panels including Node Storage & Height,
  DB Growth, Static Files Growth, State Size, History Size, RPC Active
  Connections): replace raw sum by (service) with max by (service) or
  two-level sum by (service) (max by (service, table|segment)) to eliminate
  2x spikes during restart overlap.
- Remaining unaggregated gauge/summary/stat timeseries panels: wrap with
  max by (service, <legend labels>) (avg by (service) for avg_over_time) to
  preserve continuous single lines and clean legends across restarts.

Verified all 258 PromQL expressions against live Prometheus 3.5.0 (0 errors)
and compared before/after query outputs via Grafana 13.3.1 over a 30-day
synthetic dataset with 5 instance restarts and rolling overlap.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants