pub fn gather(&self) -> prometheus::Result<Vec<u8>> {
        let collected_metrics = self.registry.gather();
        let mut out_buf = Vec::with_capacity(1024 * 64);
        let encoder = prometheus::TextEncoder::new();
        encoder.encode(&collected_metrics, &mut out_buf)?;
        Ok(out_buf)
    }
/// Gather available metrics into an encoded (plaintext, OpenMetrics format) report.
Gather available metrics into an encoded (plaintext, OpenMetrics format) report.
Gather available metrics into an encoded ( plaintext OpenMetrics format ) report .
pub fn gather(&self) -> prometheus::Result<Vec<u8>> {
        let collected_metrics = self.registry.gather();
        let mut out_buf = Vec::with_capacity(1024 * 64);
        let encoder = prometheus::TextEncoder::new();
        encoder.encode(&collected_metrics, &mut out_buf)?;
        Ok(out_buf)
    }
pub fn gather ( & self ) -> prometheus :: Result < Vec < u8 > > { let collected_metrics = self . registry . gather ( ) ; let mut out_buf = Vec :: with_capacity ( 1024 * 64 ) ; let encoder = prometheus :: TextEncoder :: new ( ) ; encoder . encode ( & collected_metrics , & mut out_buf ) ? ; Ok ( out_buf ) }
Gather available metrics into an encoded (plaintext, OpenMetrics format) report.
Gather available metrics into an encoded ( plaintext OpenMetrics format ) report .
&self
&self