Crate massa_metrics

Crate massa_metrics 

Source
Expand description

this library is used to collect metrics from the node and expose them to the prometheus server

the metrics are collected from the node and from the survey the survey is a separate thread that is used to collect metrics from the network (active connections)

Modulesยง

server ๐Ÿ”’

Structsยง

BLOCKS_COUNTER ๐Ÿ”’
DEFERRED_CALLS_TOTAL_GAS ๐Ÿ”’
DEFERRED_CALL_CANCELLED ๐Ÿ”’
DEFERRED_CALL_EXECUTED ๐Ÿ”’
DEFERRED_CALL_FAILED ๐Ÿ”’
DEFERRED_CALL_REGISTERED ๐Ÿ”’
ENDORSEMENTS_COUNTER ๐Ÿ”’
EVENT_CACHE_VEC ๐Ÿ”’
FACTORY_BLOCKS_PRODUCED ๐Ÿ”’
FACTORY_BLOCKS_PRODUCED_WITH_POOL_TIMEOUT ๐Ÿ”’
FACTORY_POOL_TIMEOUT_DENUNCIATIONS ๐Ÿ”’
FACTORY_POOL_TIMEOUT_ENDORSEMENTS ๐Ÿ”’
FACTORY_POOL_TIMEOUT_OPERATIONS ๐Ÿ”’
MassaMetrics
MetricsStopper
OPERATIONS_COUNTER ๐Ÿ”’

Functionsยง

dec_deferred_calls_cancelled_by
dec_deferred_calls_registered_by
inc_deferred_calls_cancelled
inc_deferred_calls_executed_by
inc_deferred_calls_failed_by
inc_deferred_calls_registered
inc_factory_blocks_produced
inc_factory_pool_timeout_denunciations
inc_factory_pool_timeout_endorsements
inc_factory_pool_timeout_operations
register_lazy_static_metrics ๐Ÿ”’
Eagerly register lazy_static metrics so they appear on /metrics even before the first increment (e.g. factory pool timeouts that have not occurred yet).
set_blocks_counter
set_deferred_calls_total_gas
set_endorsements_counter
set_event_cache_vec_len
set_operations_counter