Skip to content

feat: head reporter metrics via beholder metrics (#23250) - #23557

Open
bukata-sa wants to merge 3 commits into
release/2.58.1from
cherry-pick/beholder-head-tracker
Open

feat: head reporter metrics via beholder metrics (#23250)#23557
bukata-sa wants to merge 3 commits into
release/2.58.1from
cherry-pick/beholder-head-tracker

Conversation

@bukata-sa

Copy link
Copy Markdown
Contributor

Cherry-picked from 1543766

  • feat: head reporter metrics via beholder metrics

  • lint

  • bump down timeout to 2s

@bukata-sa
bukata-sa force-pushed the cherry-pick/beholder-head-tracker branch from f409157 to fd867dd Compare August 27, 2026 12:19
@github-actions

Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting release/2.58.1

@trunk-io

trunk-io Bot commented Aug 27, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

Failed Test Failure Summary Logs
TestETHKeysController_CreateSuccess The test failed without a specific error message, indicating an unspecified failure. Logs ↗︎

View Full Report ↗︎Docs

@bukata-sa
bukata-sa force-pushed the cherry-pick/beholder-head-tracker branch from 26080bf to f9df8b8 Compare August 31, 2026 18:31
makramkd and others added 2 commits August 31, 2026 19:33
Cherry-picked from 1543766


* feat: head reporter metrics via beholder metrics

* lint

* bump down timeout to 2s
@bukata-sa
bukata-sa force-pushed the cherry-pick/beholder-head-tracker branch from f9df8b8 to be3db5c Compare August 31, 2026 18:34
@bukata-sa
bukata-sa force-pushed the cherry-pick/beholder-head-tracker branch from be3db5c to a15ebd2 Compare August 31, 2026 18:34
@bukata-sa
bukata-sa marked this pull request as ready for review August 31, 2026 18:59
@bukata-sa
bukata-sa requested review from a team as code owners August 31, 2026 18:59
@cl-sonarqube-production

Copy link
Copy Markdown

return &evmMetricsReporter{lggr: lggr, metrics: metrics, selectors: selectors}
}

func (r *evmMetricsReporter) ReportNewHead(ctx context.Context, head *evmtypes.Head) error {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I wonder if we need a dedicated evmMetricsReporter.
HeadTracker doesn't guarantee that for every head, we'll have a LatestFinalizedHead.
We send a notification of a new head right away; the backfill operation (building the chain from the latest to the finalized block) runs asynchronously. The backfill uses cached chain, but if there is a gap, it may take significant time to fully reconstruct it. So in corner cases, LatestFinalizedHead() may be nil.

Since both prom and beholder metrics are captured once every ~15s, the benefit of updating the metric on every block is minimal.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah, that's a cherry-pick. never mind

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.

4 participants