Skip to main content

encode

Function encode 

Source
pub fn encode(registry: &Registry) -> Result<Vec<MetricFamily>, Error>
Available on crate feature prometheus_protobuf only.
Expand description

Encode the metrics registered with the provided Registry into Prometheus MetricFamily messages.