diff --git a/plugins/prometheus_plugin/metrics.hpp b/plugins/prometheus_plugin/metrics.hpp index 8e806f9d96..eb8b7765d0 100644 --- a/plugins/prometheus_plugin/metrics.hpp +++ b/plugins/prometheus_plugin/metrics.hpp @@ -121,35 +121,35 @@ struct catalog_type { , total_elapsed_time_us_produced_block(build("nodeos_produced_elapsed_us_total", "total produced blocks elapsed time")) , total_time_us_produced_block(build("nodeos_produced_us_total", "total produced blocks total time")) , net_usage_us_produced_block(net_usage_us.Add({{"block_type", "produced"}})) - , produced_metrics{ .num_blocks{build("blocks_produced", "number of blocks produced")} - , .block_num{build("block_num", "current block number")} - , .block_total_time_us_block{build("total_time_us_produced_block", "total time for produced block")} - , .block_idle_time_us_block{build("idle_time_us_produced_block", "idle time for produced block")} - , .block_num_success_trx_block{build("num_success_trx_produced_block", "number of successful transactions in produced block")} - , .block_success_trx_time_us_block{build("success_trx_time_us_produced_block", "time for successful transactions in produced block")} - , .block_num_failed_trx_block{build("num_failed_trx_produced_block", "number of failed transactions during produced block")} - , .block_fail_trx_time_us_block{build("fail_trx_time_us_produced_block", "time for failed transactions during produced block")} - , .block_num_transient_trx_block{build("num_transient_trx_produced_block", "number of transient transactions during produced block")} - , .block_transient_trx_time_us_block{build("transient_trx_time_us_produced_block", "time for transient transactions during produced block")} - , .block_other_time_us_block{build("other_time_us_produced_block", "all other unaccounted time during produced block")} } - , speculative_metrics{ .num_blocks{build("blocks_speculative_num", "number of speculative blocks created")} - , .block_num{build("block_num", "current block number")} - , .block_total_time_us_block{build("total_time_us_speculative_block", "total time for speculative block")} - , .block_idle_time_us_block{build("idle_time_us_speculative_block", "idle time for speculative block")} - , .block_num_success_trx_block{build("num_success_trx_speculative_block", "number of successful transactions in speculative block")} - , .block_success_trx_time_us_block{build("success_trx_time_us_speculative_block", "time for successful transactions in speculative block")} - , .block_num_failed_trx_block{build("num_failed_trx_speculative_block", "number of failed transactions during speculative block")} - , .block_fail_trx_time_us_block{build("fail_trx_time_us_speculative_block", "time for failed transactions during speculative block")} - , .block_num_transient_trx_block{build("num_transient_trx_speculative_block", "number of transient transactions during speculative block")} - , .block_transient_trx_time_us_block{build("transient_trx_time_us_speculative_block", "time for transient transactions during speculative block")} - , .block_other_time_us_block{build("other_time_us_speculative_block", "all other unaccounted time during speculative block")} } - , trxs_incoming_total(build("trxs_incoming_total", "number of incoming transactions")) + , produced_metrics{ .num_blocks{build("nodeos_blocks_produced", "number of blocks produced")} + , .block_num{build("nodeos_block_num", "current block number")} + , .block_total_time_us_block{build("nodeos_total_time_us_produced_block", "total time for produced block")} + , .block_idle_time_us_block{build("nodeos_idle_time_us_produced_block", "idle time for produced block")} + , .block_num_success_trx_block{build("nodeos_num_success_trx_produced_block", "number of successful transactions in produced block")} + , .block_success_trx_time_us_block{build("nodeos_success_trx_time_us_produced_block", "time for successful transactions in produced block")} + , .block_num_failed_trx_block{build("nodeos_num_failed_trx_produced_block", "number of failed transactions during produced block")} + , .block_fail_trx_time_us_block{build("nodeos_fail_trx_time_us_produced_block", "time for failed transactions during produced block")} + , .block_num_transient_trx_block{build("nodeos_num_transient_trx_produced_block", "number of transient transactions during produced block")} + , .block_transient_trx_time_us_block{build("nodeos_transient_trx_time_us_produced_block", "time for transient transactions during produced block")} + , .block_other_time_us_block{build("nodeos_other_time_us_produced_block", "all other unaccounted time during produced block")} } + , speculative_metrics{ .num_blocks{build("nodeos_blocks_speculative_num", "number of speculative blocks created")} + , .block_num{build("nodeos_block_num", "current block number")} + , .block_total_time_us_block{build("nodeos_total_time_us_speculative_block", "total time for speculative block")} + , .block_idle_time_us_block{build("nodeos_idle_time_us_speculative_block", "idle time for speculative block")} + , .block_num_success_trx_block{build("nodeos_num_success_trx_speculative_block", "number of successful transactions in speculative block")} + , .block_success_trx_time_us_block{build("nodeos_success_trx_time_us_speculative_block", "time for successful transactions in speculative block")} + , .block_num_failed_trx_block{build("nodeos_num_failed_trx_speculative_block", "number of failed transactions during speculative block")} + , .block_fail_trx_time_us_block{build("nodeos_fail_trx_time_us_speculative_block", "time for failed transactions during speculative block")} + , .block_num_transient_trx_block{build("nodeos_num_transient_trx_speculative_block", "number of transient transactions during speculative block")} + , .block_transient_trx_time_us_block{build("nodeos_transient_trx_time_us_speculative_block", "time for transient transactions during speculative block")} + , .block_other_time_us_block{build("nodeos_other_time_us_speculative_block", "all other unaccounted time during speculative block")} } + , trxs_incoming_total(build("nodeos_trxs_incoming_total", "number of incoming transactions")) , cpu_usage_us_incoming_block(cpu_usage_us.Add({{"block_type", "incoming"}})) , total_elapsed_time_us_incoming_block(build("nodeos_incoming_elapsed_us_total", "total incoming blocks elapsed time")) , total_time_us_incoming_block(build("nodeos_incoming_us_total", "total incoming blocks total time")) , net_usage_us_incoming_block(net_usage_us.Add({{"block_type", "incoming"}})) , latency_us_incoming_block(build("nodeos_incoming_us_block_latency", "total incoming block latency")) - , blocks_incoming(build("blocks_incoming", "number of incoming blocks")) + , blocks_incoming(build("nodeos_blocks_incoming", "number of incoming blocks")) , bytes_transferred(build("exposer_transferred_bytes_total", "total number of bytes for responses to prometheus scrape requests")) , num_scrapes(build("exposer_scrapes_total", "total number of prometheus scrape requests received")) {}