pub struct MetricsExporter { /* private fields */ }Expand description
Metrics exporter for Prometheus-style metrics
Implementations§
Source§impl MetricsExporter
 
impl MetricsExporter
Sourcepub fn new(metrics: Arc<KafkaMetrics>) -> Self
 
pub fn new(metrics: Arc<KafkaMetrics>) -> Self
Create a new metrics exporter
Sourcepub fn export_prometheus(&self) -> String
 
pub fn export_prometheus(&self) -> String
Export metrics in Prometheus format
Auto Trait Implementations§
impl Freeze for MetricsExporter
impl RefUnwindSafe for MetricsExporter
impl Send for MetricsExporter
impl Sync for MetricsExporter
impl Unpin for MetricsExporter
impl UnwindSafe for MetricsExporter
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