pub trait PrometheusExport {
// Required method
fn export_prometheus(&self, output: &mut String, name: &str, help: &str);
}Expand description
Trait for exporting a metric in Prometheus text exposition format.
Required Methods§
Sourcefn export_prometheus(&self, output: &mut String, name: &str, help: &str)
fn export_prometheus(&self, output: &mut String, name: &str, help: &str)
Export this metric to the output string.
output: String buffer to append toname: The metric name (with prefix already applied)help: The help text for this metric