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

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Oct 21, 2024

Update the speculative block metrics for produced blocks.

Resolves #956

@heifner heifner requested review from linh2931 and greg7mdp October 21, 2024 15:28
@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?

@ericpassmore ericpassmore added the bug The product is not working as was intended. label Oct 23, 2024
@ericpassmore
Copy link
Contributor

Note:start
category: Logging
component: Prometheus
summary: Update speculative block metrics for when producing blocks.
Note:end

@heifner heifner merged commit 5e7249a into release/1.0 Oct 24, 2024
36 checks passed
@heifner heifner deleted the GH-956-prometheus-speculative-metrics branch October 24, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The product is not working as was intended. 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
5 participants