Skip to main content

split_name

Function split_name 

Source
fn split_name(name: &str) -> Option<(&str, &str)>
Expand description

Splits a registered metric name into the node path and the figure it reports.

A name is native.<path>.<metric>, and native.p<partition>.<path>.<metric> for a figure that is registered per partition. The partition belongs to that registration rather than to the node, so it is dropped here and its values are combined by NodeMetricsSnapshot::read. A name that is not one of this module’s is not a node figure, and is left to whoever else reads set.