Tezos_dal_node_lib.Dal_metrics
Update the DAL metrics counter when a reconstruction is started.
Update the DAL metrics counter of enqueued reconstruction tasks
Update a DAL metrics timing when a whole amplification is done.
Update the DAL metrics counter when a reconstruction is aborted because enough shards have been received during the random delay.
Update the "waiting_for_attestation" status of the given slot index in the metrics. The value is set to 1 if set
is true, and -1 otherwise.
Update the "attestation" status of the given slot index in the metrics. The value is set to 1 if set
is true, and -1 otherwise.
val attested_slots_for_baker_per_level_ratio :
delegate:Tezos_crypto.Signature.Public_key_hash.t ->
float ->
unit
Update the "attestation" ratio for the baker
A new layer1 head with the given round was seen.
Update the finalized layer1 blocks with the given value.
A new layer1 block with the given round was finalized.
Update the shards verification time with the given value.
Update the KVS shards metrics.
Update the DAL metrics timing value when enough of all the shards are received.
Update the DAL metrics timing value when all the shards are received.
Add a DAL metrics timing value when a reconstruction is started.
Add a the DAL metrics timing value when a reconstruction is aborted.
val sample_time :
sampling_frequency:int ->
to_sample:(unit -> 'a) ->
metric_updater:(float -> unit) ->
'a
sample_time ~sampling_frequency ~to_sample ~metric_updater
samples execution time of function to_sample
at frequency sampling_frequency
. Execution time if any is then provided to metric_updater
.
val collect_gossipsub_metrics :
Tezos_dal_node_lib_gossipsub.Gossipsub.Worker.t ->
unit
collect_gossipsub_metrics gs_worker
allows to periodically collect metrics from the given GS Worker state.
val update_timing_shard_received :
Tezos_crypto_dal.Cryptobox.t ->
slot_metrics Slot_id_bounded_map.t ->
Slot_id_bounded_map.key ->
number_of_already_stored_shards:int ->
number_of_shards:int ->
slot_metrics
update_timing_shard_received cryptobox shards_timing_table slot_id
~number_of_already_stored_shards ~number_of_shards
updates the timing metrics associated with slot_id
in the shards_timing_table
.
This function should be called each time a shard is received. It records the timestamp of the first shard received for a slot, and updates the durations for:
redundancy_factor
)The update occurs only if the number of already stored shards has increased and the corresponding duration has not yet been set. No I/O is performed; the function only modifies the in-memory timing table.