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

EN-12330: export metric erd_are_vm_queries_ready #4097

Conversation

bogdan-rosianu
Copy link
Contributor

export a metric that will tell if the node is ready for processing VM Queries

@bogdan-rosianu bogdan-rosianu added the type:feature New feature or request label May 20, 2022
@bogdan-rosianu bogdan-rosianu self-assigned this May 20, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #4097 (b7a62e8) into master (4c334e9) will decrease coverage by 0.00%.
The diff coverage is 25.00%.

@@            Coverage Diff             @@
##           master    #4097      +/-   ##
==========================================
- Coverage   74.82%   74.82%   -0.01%     
==========================================
  Files         609      609              
  Lines       80936    80938       +2     
==========================================
- Hits        60562    60561       -1     
- Misses      15737    15739       +2     
- Partials     4637     4638       +1     
Impacted Files Coverage Δ
node/nodeRunner.go 0.00% <0.00%> (ø)
node/metrics/metrics.go 59.85% <100.00%> (+0.28%) ⬆️
process/block/baseProcess.go 69.08% <0.00%> (-0.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c334e9...b7a62e8. Read the comment docs.

@miiu96 miiu96 self-requested a review May 31, 2022 10:43
@@ -536,6 +536,10 @@ const MetricP2PUnknownPeers = "erd_p2p_unknown_shard_peers"
// MetricP2PNumConnectedPeersClassification is the metric for monitoring the number of connected peers split on the connection type
const MetricP2PNumConnectedPeersClassification = "erd_p2p_num_connected_peers_classification"

// MetricAreVMQueriesReady will hold the string representation of the boolean that indicated if the node is ready
// to process VM queries
const MetricAreVMQueriesReady = "erd_are_vm_queries_ready"
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe you can remove the verb from the const name and value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would rather keep the naming, as the are prefix resembles a boolean value

sstanculeanu
sstanculeanu previously approved these changes May 31, 2022
@bogdan-rosianu bogdan-rosianu changed the base branch from master to rc/2022-june June 2, 2022 12:23
@bogdan-rosianu bogdan-rosianu dismissed sstanculeanu’s stale review June 2, 2022 12:23

The base branch was changed.

Copy link
Collaborator

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

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

System test passed.

@bogdan-rosianu bogdan-rosianu merged commit ad13478 into rc/2022-june Jun 2, 2022
@bogdan-rosianu bogdan-rosianu deleted the EN-12330-dont-use-node-in-proxy-if-not-ready-for-vm-queries branch June 2, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants