Skip to main content

shared_metrics

Function shared_metrics 

Source
pub fn shared_metrics(endpoint: VarlinkEndpoint) -> SharedMetrics
Expand description

Prepare the shared metrics stream for one collection cycle.

Nothing is sent until a collector awaits it, so building this for a cycle where every reader uses D-Bus costs nothing.