pub struct PrometheusExporter { /* private fields */ }Available on crate feature
metrics only.Expand description
Holds Prometheus counters mirroring the executor’s metrics.
Implementations§
Source§impl PrometheusExporter
impl PrometheusExporter
Sourcepub fn registry(&self) -> &Registry
pub fn registry(&self) -> &Registry
The underlying registry, e.g. to register additional collectors.
Sourcepub fn update(&self, snap: &MetricsSnapshot)
pub fn update(&self, snap: &MetricsSnapshot)
Overwrite counter values from a snapshot.
Prometheus counters are monotonic, so we only ever move them forward by the delta between their current value and the snapshot.
Auto Trait Implementations§
impl !RefUnwindSafe for PrometheusExporter
impl !UnwindSafe for PrometheusExporter
impl Freeze for PrometheusExporter
impl Send for PrometheusExporter
impl Sync for PrometheusExporter
impl Unpin for PrometheusExporter
impl UnsafeUnpin 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