pub fn metrics_hooks<N: NodeTypesWithDB>(
provider_factory: &ProviderFactory<N>,
) -> HooksExpand 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.