stratus::infra

Module metrics

Source

Structs§

MetricsConfig
Timed

Enums§

MetricLabelValue
Representation of a metric label value.

Constants§

LABEL_ERROR
Label value indicating an error happened.
LABEL_MISSING
Label value indicating a value is missing.
LABEL_PRESENT
Label value indicating a value is present.
LABEL_UNKNOWN
Label value indicating a value is unknown.
METRIC_CONSENSUS_FORWARD
METRIC_CONSENSUS_IS_READY
METRIC_EVM_EXECUTION
METRIC_EVM_EXECUTION_ACCOUNT_READS
METRIC_EVM_EXECUTION_SLOT_READS
METRIC_EVM_INSPECT
METRIC_EXECUTOR_EXTERNAL_BLOCK
METRIC_EXECUTOR_EXTERNAL_BLOCK_ACCOUNT_READS
METRIC_EXECUTOR_EXTERNAL_BLOCK_SLOT_READS
METRIC_EXECUTOR_EXTERNAL_TRANSACTION
METRIC_EXECUTOR_EXTERNAL_TRANSACTION_ACCOUNT_READS
METRIC_EXECUTOR_EXTERNAL_TRANSACTION_GAS
METRIC_EXECUTOR_EXTERNAL_TRANSACTION_SLOT_READS
METRIC_EXECUTOR_LOCAL_CALL
METRIC_EXECUTOR_LOCAL_CALL_ACCOUNT_READS
METRIC_EXECUTOR_LOCAL_CALL_GAS
METRIC_EXECUTOR_LOCAL_CALL_SLOT_READS
METRIC_EXECUTOR_LOCAL_TRANSACTION
METRIC_EXECUTOR_LOCAL_TRANSACTION_ACCOUNT_READS
METRIC_EXECUTOR_LOCAL_TRANSACTION_GAS
METRIC_EXECUTOR_LOCAL_TRANSACTION_REVERTS
METRIC_EXECUTOR_LOCAL_TRANSACTION_SLOT_READS
METRIC_IMPORTER_ONLINE_TRANSACTIONS_TOTAL
METRIC_IMPORT_ONLINE_MINED_BLOCK
METRIC_KAFKA_CREATE_BUFFER
METRIC_KAFKA_QUEUE_EVENT
METRIC_KAFKA_SEND_BUFFERED
METRIC_ROCKS_BACKGROUND_ERRORS
METRIC_ROCKS_BLOCK_CACHE_CAPACITY
METRIC_ROCKS_BLOCK_CACHE_HIT
METRIC_ROCKS_BLOCK_CACHE_MISS
METRIC_ROCKS_BLOCK_CACHE_USAGE
METRIC_ROCKS_BYTES_READ
METRIC_ROCKS_BYTES_WRITTEN
METRIC_ROCKS_CF_SIZE
METRIC_ROCKS_COMPACTION_CPU_TIME
METRIC_ROCKS_COMPACTION_TIME
METRIC_ROCKS_CUR_SIZE_ACTIVE_MEM_TABLE
METRIC_ROCKS_CUR_SIZE_ALL_MEM_TABLES
METRIC_ROCKS_DB_GET
METRIC_ROCKS_DB_WRITE
METRIC_ROCKS_FLUSH_TIME
METRIC_ROCKS_LAST_SHUTDOWN_DELAY_MILLIS
METRIC_ROCKS_LAST_STARTUP_DELAY_MILLIS
METRIC_ROCKS_SIZE_ALL_MEM_TABLES
METRIC_ROCKS_WAL_FILE_SYNCED
METRIC_RPC_REQUESTS_ACTIVE
METRIC_RPC_REQUESTS_FINISHED
METRIC_RPC_REQUESTS_STARTED
METRIC_RPC_SUBSCRIPTIONS_ACTIVE
METRIC_STORAGE_APPLY_REPLICATION_LOG
METRIC_STORAGE_FINISH_PENDING_BLOCK
METRIC_STORAGE_READ_ACCOUNT
METRIC_STORAGE_READ_BLOCK
METRIC_STORAGE_READ_LOGS
METRIC_STORAGE_READ_MINED_BLOCK_NUMBER
METRIC_STORAGE_READ_PENDING_BLOCK_NUMBER
METRIC_STORAGE_READ_REPLICATION_LOG
METRIC_STORAGE_READ_SLOT
METRIC_STORAGE_READ_TRANSACTION
METRIC_STORAGE_RESET
METRIC_STORAGE_SAVE_ACCOUNTS
METRIC_STORAGE_SAVE_BLOCK
METRIC_STORAGE_SAVE_EXECUTION
METRIC_STORAGE_SET_MINED_BLOCK_NUMBER
METRIC_STORAGE_SET_PENDING_BLOCK_NUMBER
METRIC_STORAGE_SET_PENDING_EXTERNAL_BLOCK

Functions§

inc_consensus_forward
Add operation duration to consensus_forward histogram.
inc_evm_execution
Add operation duration to evm_execution histogram.
inc_evm_execution_account_reads
Add N to evm_execution_account_reads histogram.
inc_evm_execution_slot_reads
Add N to evm_execution_slot_reads histogram.
inc_evm_inspect
Add operation duration to evm_inspect histogram.
inc_executor_external_block
Add operation duration to executor_external_block histogram.
inc_executor_external_block_account_reads
Add N to executor_external_block_account_reads histogram.
inc_executor_external_block_slot_reads
Add N to executor_external_block_slot_reads histogram.
inc_executor_external_transaction
Add operation duration to executor_external_transaction histogram.
inc_executor_external_transaction_account_reads
Add N to executor_external_transaction_account_reads histogram.
inc_executor_external_transaction_gas
Add N to executor_external_transaction_gas histogram.
inc_executor_external_transaction_slot_reads
Add N to executor_external_transaction_slot_reads histogram.
inc_executor_local_call
Add operation duration to executor_local_call histogram.
inc_executor_local_call_account_reads
Add N to executor_local_call_account_reads histogram.
inc_executor_local_call_gas
Add N to executor_local_call_gas histogram.
inc_executor_local_call_slot_reads
Add N to executor_local_call_slot_reads histogram.
inc_executor_local_transaction
Add operation duration to executor_local_transaction histogram.
inc_executor_local_transaction_account_reads
Add N to executor_local_transaction_account_reads histogram.
inc_executor_local_transaction_gas
Add N to executor_local_transaction_gas histogram.
inc_executor_local_transaction_reverts
Add 1 to executor_local_transaction_reverts counter.
inc_executor_local_transaction_slot_reads
Add N to executor_local_transaction_slot_reads histogram.
inc_import_online_mined_block
Add operation duration to import_online_mined_block histogram.
inc_importer_online_transactions_total
Add 1 to importer_online_transactions_total counter.
inc_kafka_create_buffer
Add operation duration to kafka_create_buffer histogram.
inc_kafka_queue_event
Add operation duration to kafka_queue_event histogram.
inc_kafka_send_buffered
Add operation duration to kafka_send_buffered histogram.
inc_n_executor_local_transaction_reverts
Add n to executor_local_transaction_reverts counter.
inc_n_importer_online_transactions_total
Add n to importer_online_transactions_total counter.
inc_n_rpc_requests_started
Add n to rpc_requests_started counter.
inc_rpc_requests_finished
Add operation duration to rpc_requests_finished histogram.
inc_rpc_requests_started
Add 1 to rpc_requests_started counter.
inc_storage_apply_replication_log
Add operation duration to storage_apply_replication_log histogram.
inc_storage_finish_pending_block
Add operation duration to storage_finish_pending_block histogram.
inc_storage_read_account
Add operation duration to storage_read_account histogram.
inc_storage_read_block
Add operation duration to storage_read_block histogram.
inc_storage_read_logs
Add operation duration to storage_read_logs histogram.
inc_storage_read_mined_block_number
Add operation duration to storage_read_mined_block_number histogram.
inc_storage_read_pending_block_number
Add operation duration to storage_read_pending_block_number histogram.
inc_storage_read_replication_log
Add operation duration to storage_read_replication_log histogram.
inc_storage_read_slot
Add operation duration to storage_read_slot histogram.
inc_storage_read_transaction
Add operation duration to storage_read_transaction histogram.
inc_storage_reset
Add operation duration to storage_reset histogram.
inc_storage_save_accounts
Add operation duration to storage_save_accounts histogram.
inc_storage_save_block
Add operation duration to storage_save_block histogram.
inc_storage_save_execution
Add operation duration to storage_save_execution histogram.
inc_storage_set_mined_block_number
Add operation duration to storage_set_mined_block_number histogram.
inc_storage_set_pending_block_number
Add operation duration to storage_set_pending_block_number histogram.
inc_storage_set_pending_external_block
Add operation duration to storage_set_pending_external_block histogram.
now
Track metrics execution starting instant.
set_consensus_is_ready
Set consensus_is_ready gauge.
set_rocks_background_errors
Set rocks_background_errors gauge.
set_rocks_block_cache_capacity
Set rocks_block_cache_capacity gauge.
set_rocks_block_cache_hit
Set rocks_block_cache_hit gauge.
set_rocks_block_cache_miss
Set rocks_block_cache_miss gauge.
set_rocks_block_cache_usage
Set rocks_block_cache_usage gauge.
set_rocks_bytes_read
Set rocks_bytes_read gauge.
set_rocks_bytes_written
Set rocks_bytes_written gauge.
set_rocks_cf_size
Set rocks_cf_size gauge.
set_rocks_compaction_cpu_time
Set rocks_compaction_cpu_time gauge.
set_rocks_compaction_time
Set rocks_compaction_time gauge.
set_rocks_cur_size_active_mem_table
Set rocks_cur_size_active_mem_table gauge.
set_rocks_cur_size_all_mem_tables
Set rocks_cur_size_all_mem_tables gauge.
set_rocks_db_get
Set rocks_db_get gauge.
set_rocks_db_write
Set rocks_db_write gauge.
set_rocks_flush_time
Set rocks_flush_time gauge.
set_rocks_last_shutdown_delay_millis
Set rocks_last_shutdown_delay_millis gauge.
set_rocks_last_startup_delay_millis
Set rocks_last_startup_delay_millis gauge.
set_rocks_size_all_mem_tables
Set rocks_size_all_mem_tables gauge.
set_rocks_wal_file_synced
Set rocks_wal_file_synced gauge.
set_rpc_requests_active
Set rpc_requests_active gauge.
set_rpc_subscriptions_active
Set rpc_subscriptions_active gauge.
timed
Measures how long the provided function takes to execute.

Type Aliases§

Count
HistogramInt
Sum