Function serde_prometheus::write
source · pub fn write<'a, T, L, LI, W: Write>(
output: &mut W,
value: &T,
namespace: Option<&str>,
global_labels: L
) -> Result<(), Error>where
T: ?Sized + Serialize,
LI: Borrow<(&'a str, &'a str)>,
L: IntoIterator<Item = LI>,Expand description
Outputs a metered::MetricRegistry in Prometheus’ simple text-based exposition
format.