pub struct PrometheusExporter { /* private fields */ }
Expand description
Prometheus metrics exporter
Trait Implementations§
Source§impl Debug for PrometheusExporter
impl Debug for PrometheusExporter
Source§impl MetricReader for PrometheusExporter
impl MetricReader for PrometheusExporter
Source§fn temporality(&self, _kind: InstrumentKind) -> Temporality
fn temporality(&self, _kind: InstrumentKind) -> Temporality
Note: Prometheus only supports cumulative temporality, so this will always be Temporality::Cumulative.
Source§fn register_pipeline(&self, pipeline: Weak<Pipeline>)
fn register_pipeline(&self, pipeline: Weak<Pipeline>)
Registers a MetricReader with a [Pipeline]. Read more
Source§fn collect(&self, rm: &mut ResourceMetrics) -> MetricResult<()>
fn collect(&self, rm: &mut ResourceMetrics) -> MetricResult<()>
Gathers and returns all metric data related to the MetricReader from the
SDK and stores it in the provided ResourceMetrics reference. Read more
Source§fn force_flush(&self) -> OTelSdkResult
fn force_flush(&self) -> OTelSdkResult
Flushes all metric measurements held in an export pipeline. Read more
Source§fn shutdown(&self) -> OTelSdkResult
fn shutdown(&self) -> OTelSdkResult
Flushes all metric measurements held in an export pipeline and releases any
held computational resources. Read more
Auto Trait Implementations§
impl Freeze for PrometheusExporter
impl RefUnwindSafe for PrometheusExporter
impl Send for PrometheusExporter
impl Sync for PrometheusExporter
impl Unpin for PrometheusExporter
impl UnwindSafe for PrometheusExporter
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