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

feat: record validation and end-to-end response time in signer metrics #5664

Merged
merged 8 commits into from
Jan 20, 2025

Conversation

hstove
Copy link
Contributor

@hstove hstove commented Jan 6, 2025

This PR adds two metrics:

  • stacks_signer_block_response_latencies_histogram: this measures the "end-to-end" time that the signer takes to respond to a block proposal. The block's timestamp is used as the "start time", so this isn't a totally fair end-to-end measurement, but it's directionally accurate.
  • stacks_signer_block_validation_latencies_histogram: the validation_time_ms reported by the node when validating a block proposal

@hstove hstove requested review from a team as code owners January 6, 2025 20:30
@hstove hstove requested a review from a team as a code owner January 6, 2025 20:31
@hstove hstove requested a review from jferrant January 6, 2025 20:32
@hstove hstove linked an issue Jan 7, 2025 that may be closed by this pull request
@aldur aldur requested review from jbencin and rdeioris January 8, 2025 15:56
jbencin
jbencin previously approved these changes Jan 10, 2025
obycode
obycode previously approved these changes Jan 10, 2025
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

LGTM. I just left one optional comment. Feel free to ignore it.

rdeioris
rdeioris previously approved these changes Jan 12, 2025
Copy link
Contributor

@rdeioris rdeioris left a comment

Choose a reason for hiding this comment

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

LGTM

@hstove hstove dismissed stale reviews from rdeioris, obycode, and jbencin via 5ee8464 January 15, 2025 15:13
Copy link
Member

@jcnelson jcnelson left a comment

Choose a reason for hiding this comment

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

See comments. Otherwise looks good. Thanks!

obycode
obycode previously approved these changes Jan 16, 2025
to reduce the amount of `cfg` macros needed
@hstove hstove requested a review from obycode January 17, 2025 15:13
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Member

@jcnelson jcnelson left a comment

Choose a reason for hiding this comment

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

This is much cleaner and much easier to reason about. Thanks @hstove!

@hstove hstove added this pull request to the merge queue Jan 20, 2025
Merged via the queue into develop with commit 619c2fe Jan 20, 2025
175 checks passed
@hstove hstove deleted the feat/signer-metrics-validation-time branch January 20, 2025 23:29
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Jan 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add signer prometheus metrics for block validation time
6 participants