Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added metrics for observed waypoints #12785

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

eastorski
Copy link
Contributor

No description provided.

@@ -31,6 +31,8 @@ var (
BlockConsumerPreExecutionDelay = metrics.NewSummary(`block_consumer_delay{type="pre_execution"}`)
BlockConsumerPostExecutionDelay = metrics.NewSummary(`block_consumer_delay{type="post_execution"}`)
BlockProducerProductionDelay = metrics.NewSummary(`block_producer_delay{type="production"}`)
ObservedWaypointCheckpointLength = metrics.NewSummary(`observed_waypoint_length{type="checkpoint"}`)
Copy link
Member

Choose a reason for hiding this comment

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

would suggest to move these inside the heimdall package

@@ -201,6 +203,16 @@ func (te *TipEvents) Run(ctx context.Context) error {
}, heimdall.WithEventsLimit(5))
defer milestoneObserverCancel()

metricsMilestoneObserverCancel := te.heimdallObserverRegistrar.RegisterMilestoneObserver(func(milestone *heimdall.Milestone) {
Copy link
Member

Choose a reason for hiding this comment

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

would suggest to move these inside the heimdall package, can be registered as background daemons of the heimdall.Service inside its Run method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to heimdall

@@ -31,6 +31,8 @@ var (
BlockConsumerPreExecutionDelay = metrics.NewSummary(`block_consumer_delay{type="pre_execution"}`)
BlockConsumerPostExecutionDelay = metrics.NewSummary(`block_consumer_delay{type="post_execution"}`)
BlockProducerProductionDelay = metrics.NewSummary(`block_producer_delay{type="production"}`)
ObservedWaypointCheckpointLength = metrics.NewSummary(`observed_waypoint_length{type="checkpoint"}`)
ObservedWaypointMilestoneLength = metrics.NewSummary(`observed_waypoint_length{type="milestone"}`)
Copy link
Member

Choose a reason for hiding this comment

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

do we need these to be summary-ies or would not a gauge metric type be more suitable?

@taratorio taratorio enabled auto-merge (squash) November 20, 2024 11:43
@taratorio taratorio merged commit ffcbbf1 into main Nov 20, 2024
14 of 15 checks passed
@taratorio taratorio deleted the eastorski/waypoint-metrics branch November 20, 2024 12:04
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