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

fix(metrics): validator missed blocks, inc -> set #4327

Merged
merged 1 commit into from
May 6, 2024

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented May 6, 2024

Describe your changes

We were inappropriately incrementing a gauge to track missed blocks, when instead we should have been clobbering the value via set, as we know the precise number from the state machine. This fixes a broken metric for missed blocks that was growing too fast, emitting wrong values.

Refs #3746.

Not included in this small patch is a rework of the other validator-related metrics. As described in #3746, we should migrate those metrics to use Events instead.

Issue ticket number and link

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    metrics-only, no logic changes

We were inappropriately `increment`ing a gauge to track missed blocks,
when instead we should have been clobbering the value via `set`,
as we know the precise number from the state machine. This fixes
a broken metric for missed blocks that was growing too fast,
emitting wrong values.

Refs #3746.
@cratelyn cratelyn added A-telemetry Area: Metrics, logging, and other observability-related features C-bug Category: a bug labels May 6, 2024
Copy link
Contributor

@cratelyn cratelyn left a comment

Choose a reason for hiding this comment

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

thank you for fixing this!

@cratelyn cratelyn added this to the Sprint 6 milestone May 6, 2024
@aubrika aubrika removed this from the Sprint 6 milestone May 6, 2024
@conorsch conorsch merged commit 6ee9cb4 into main May 6, 2024
13 checks passed
@conorsch conorsch deleted the 3746-validator-metrics branch May 6, 2024 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-telemetry Area: Metrics, logging, and other observability-related features C-bug Category: a bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants