-
Notifications
You must be signed in to change notification settings - Fork 69
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
Prometheus: Add speculative block metrics #1502
Conversation
@@ -52,20 +52,42 @@ struct catalog_type { | |||
Gauge& last_irreversible; | |||
Gauge& head_block_num; | |||
|
|||
struct block_metrics { | |||
Counter& num_blocks; | |||
Gauge& block_num; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find block_num
and num_blocks
confusing naming. On lines 124
and 125
there is explanation. I suggest to name them accordingly to be self-descriptive. Something like that or maybe you have better ideas:
num_blocks
-> produced_blocks_num
block_num
-> cur_block_num
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed
Added speculative block metrics:
total_time_us_produced_block - total time for produced block
idle_time_us_produced_block - idle time for produced block
num_success_trx_produced_block - number of successful transactions in produced block
success_trx_time_us_produced_block - time for successful transactions in produced block
num_failed_trx_produced_block - number of failed transactions during produced block
fail_trx_time_us_produced_block - time for failed transactions during produced block
num_transient_trx_produced_block - number of transient transactions during produced block
transient_trx_time_us_produced_block -time for transient transactions during produced block
other_time_us_produced_block - all other unaccounted time during produced block
block_num - current block number
blocks_speculative_num - number of speculative blocks created
total_time_us_speculative_block - total time for speculative block
idle_time_us_speculative_block - idle time for speculative block
num_success_trx_speculative_block - number of successful transactions in speculative block
success_trx_time_us_speculative_block - time for successful transactions in speculative block
num_failed_trx_speculative_block - number of failed transactions during speculative block
fail_trx_time_us_speculative_block - time for failed transactions during speculative block
num_transient_trx_speculative_block - number of transient transactions during speculative block
transient_trx_time_us_speculative_block - time for transient transactions during speculative block
other_time_us_speculative_block - all other unaccounted time during speculative block
Added the following to produced blocks:
nodeos_produced_elapsed_us_total - total produced blocks elapsed time
nodeos_produced_us_total - total produced blocks total time
Added the following to incoming blocks:
nodeos_incoming_elapsed_us_total - total incoming blocks elapsed time
nodeos_incoming_us_total - total incoming blocks total time
nodeos_incoming_us_block_latency - total incoming block latency
Resolves #1359