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

[1.0.3] Prometheus: Update speculative block metrics for produced blocks #957

Open
wants to merge 1 commit into
base: release/1.0
Choose a base branch
from

Conversation

heifner
Copy link
Member

@heifner heifner commented Oct 21, 2024

Update the speculative block metrics for produced blocks.

Resolves #956

@heifner heifner linked an issue Oct 21, 2024 that may be closed by this pull request
@heifner heifner added the OCI Work exclusive to OCI team label Oct 21, 2024
@@ -259,6 +259,7 @@ struct catalog_type {
net_usage_us_produced_block.Increment(metrics.net_usage_us);

update(produced_metrics, metrics);
update(speculative_metrics, metrics);
Copy link
Member

Choose a reason for hiding this comment

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

it's okay that this increments speculative num_blocks_created right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I think so. If we want to report produced blocks also as speculative, seems we should report all the values.

@heifner
Copy link
Member Author

heifner commented Oct 21, 2024

@matthewdarwin see any issue with this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nodeos_block_num metric flapping on BP node
4 participants