prometheus_exporter_base 1.4.0

Prometheus Rust exporters base crate with optional boilerplate
Documentation
1
2
3
4
5
6
7
8
/// This trait should be implemented by
/// any instance able to render itself according
/// to Prometheus specifications.
pub trait RenderToPrometheus: std::fmt::Debug {
    /// Render must return the instance formatted
    /// string without the metric info.
    fn render(&self) -> String;
}