Skip to main content

PrometheusExport

Trait PrometheusExport 

Source
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§

Source

fn export_prometheus(&self, output: &mut String, name: &str, help: &str)

Export this metric to the output string.

  • output: String buffer to append to
  • name: The metric name (with prefix already applied)
  • help: The help text for this metric

Implementors§