arena: cumulative authorship counter so the leaderboard follows the time range #9
Reference in New Issue
Block a user
Delete Branch "arena/authored-counter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
quantus_blocks_authoredis a rolling window by block count (3,600 blocks, about six hours at the target time) served as a gauge and queried as an instant, so the "Authorship leaderboard" panel could not respond to Grafana's time picker: it always showed the last 3,600 blocks.quantus_blocks_authored_total{preimage, self}, cumulative since the exporter started. Not capped to top N, because a counter that appears and disappears loses increments; the label set is bounded by distinct miners seen, which is dozens. The windowed gauge and everything derived from it are unchanged.sort_desc(topk(20, round(increase(quantus_blocks_authored_total[$__range])))), retitled to say it follows the dashboard range, with a description noting that counts exist from the exporter's restart onward and within retention, and thatincrease()extrapolates across scrape gaps.Merging deploys the exporter to the node host (checksum-gated restart) and the dashboard to the metrics host; the counter starts at that restart, so the panel fills in from then.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CBgs2nSi4H2mdh8kD8vMX5