Skip to main content

metrics_hooks

Function metrics_hooks 

Source
pub fn metrics_hooks<N>(provider_factory: &ProviderFactory<N>) -> Hooks
where N: NodeTypesWithDB,
Expand description

Returns the metrics hooks for the node.

The storage hooks walk their backing store, which scales with the dataset, so they are registered as background hooks: metrics collection still refreshes them at most every 5 minutes, but renders the values of the previous refresh instead of waiting for the walk.