Skip to main content

encode_to_vec

Function encode_to_vec 

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

Encode the metrics registered with the provided Registry into a length-delimited Prometheus protobuf payload.