Skip to content

feat(op-interop-filter): add chain tip lag and ingestion lag metrics#20620

Open
jelias2 wants to merge 1 commit into
developfrom
jake/interop-filter-lag-metrics
Open

feat(op-interop-filter): add chain tip lag and ingestion lag metrics#20620
jelias2 wants to merge 1 commit into
developfrom
jake/interop-filter-lag-metrics

Conversation

@jelias2
Copy link
Copy Markdown
Contributor

@jelias2 jelias2 commented May 8, 2026

Summary

  • Adds three new per-chain Prometheus gauges: chain_tip (RPC head block), tip_lag_blocks (blocks behind tip), and ingestion_lag_seconds (wall-clock seconds behind tip)
  • Recorded every poll tick in the ingestion loop after fetching the chain head

Test plan

  • go build ./... passes
  • go test ./... passes
  • Deploy to devnet and verify metrics appear on /metrics endpoint

🤖 Generated with Claude Code

@jelias2 jelias2 requested a review from a team as a code owner May 8, 2026 23:05
@jelias2 jelias2 closed this May 19, 2026
@jelias2 jelias2 reopened this May 21, 2026
Copy link
Copy Markdown
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Add three new Prometheus gauges per chain to track how far the ingester
is behind: chain_tip (RPC head), tip_lag_blocks (block delta), and
ingestion_lag_seconds (wall-clock delta from latest ingested timestamp).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jelias2 jelias2 force-pushed the jake/interop-filter-lag-metrics branch from 2744aeb to 29d4eaa Compare May 22, 2026 14:24
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