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
Member

No description provided.

@eastorski eastorski force-pushed the eastorski/waypoint-metrics branch from 85ba297 to b0128ad Compare November 19, 2024 16:56
@@ -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
Member 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?

@eastorski eastorski force-pushed the eastorski/waypoint-metrics branch from b0128ad to 8559b2d Compare November 20, 2024 11:38
@taratorio taratorio enabled auto-merge (squash) November 20, 2024 11:43
@eastorski eastorski requested review from shohamc1 and mh0lt November 20, 2024 11:44
@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
@eastorski eastorski linked an issue Nov 26, 2024 that may be closed by this pull request
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.

astrid waypoints length prometheus metrics
2 participants