Skip to main content

Crate snarkos_node_metrics

Crate snarkos_node_metrics 

Source

Re-exports§

pub use names::*;

Modules§

committee
names

Functions§

add_transmission_latency_metric
counter
Updates a counter with the given name to the given value.
decrement_gauge
Decrements a gauge with the given name by the given value.
gauge
Updates a gauge with the given name to the given value.
histogram
Updates a histogram with the given name to the given value.
histogram_label
increment_counter
Increments a counter with the given name by one.
increment_gauge
Increments a gauge with the given name by the given value.
initialize_metrics
Initializes the metrics and returns a handle to the task running the metrics exporter.
register_counter
Registers a counter with the given name.
register_gauge
Registers a gauge with the given name.
register_histogram
Registers a histogram with the given name.
register_metrics
Registers all snarkVM metrics.
set_build_info
Sets the build information metric with version details as labels. The resulting metric will show as: snarkos_build_info{version=“4.2.1”,git_commit=“abc123”,git_branch=“main”,features=“cuda,metrics”} 1
update_block_metrics