pub struct PrometheusExporter<'a> { /* private fields */ }Expand description
Prometheus metrics exporter
Implementations§
Source§impl<'a> PrometheusExporter<'a>
impl<'a> PrometheusExporter<'a>
Sourcepub fn new(collector: &'a MetricsCollector) -> Self
pub fn new(collector: &'a MetricsCollector) -> Self
Create a new exporter with default prefix “halldyll”
Sourcepub fn with_prefix(
collector: &'a MetricsCollector,
prefix: impl Into<String>,
) -> Self
pub fn with_prefix( collector: &'a MetricsCollector, prefix: impl Into<String>, ) -> Self
Create with custom prefix
Sourcepub fn export_with_labels(&self, labels: &[(&str, &str)]) -> String
pub fn export_with_labels(&self, labels: &[(&str, &str)]) -> String
Export with additional labels
Auto Trait Implementations§
impl<'a> Freeze for PrometheusExporter<'a>
impl<'a> RefUnwindSafe for PrometheusExporter<'a>
impl<'a> Send for PrometheusExporter<'a>
impl<'a> Sync for PrometheusExporter<'a>
impl<'a> Unpin for PrometheusExporter<'a>
impl<'a> UnwindSafe for PrometheusExporter<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more