[][src]Function serde_prometheus::to_string

pub fn to_string<'a, T: ?Sized, L, LI>(
    value: &T,
    namespace: Option<&str>,
    global_labels: L
) -> Result<String, Error> where
    T: Serialize,
    LI: Borrow<(&'a str, &'a str)>,
    L: IntoIterator<Item = LI>, 

Outputs a metered::MetricRegistry in Prometheus' simple text-based exposition format.