pub struct PrometheusExporter { /* private fields */ }
Expand description
Prometheus metrics exporter
Trait Implementations§
source§impl AggregationSelector for PrometheusExporter
impl AggregationSelector for PrometheusExporter
source§fn aggregation(&self, kind: InstrumentKind) -> Aggregation
fn aggregation(&self, kind: InstrumentKind) -> Aggregation
Selects the aggregation and the parameters to use for that aggregation based on
the InstrumentKind.
source§impl Debug for PrometheusExporter
impl Debug for PrometheusExporter
source§impl MetricReader for PrometheusExporter
impl MetricReader for PrometheusExporter
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) -> Result<()>
fn collect(&self, rm: &mut ResourceMetrics) -> Result<()>
Gathers and returns all metric data related to the MetricReader from the
SDK and stores it in the provided ResourceMetrics reference. Read more
source§impl TemporalitySelector for PrometheusExporter
impl TemporalitySelector 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.
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