Struct dataflow::server::metrics::WorkerMetrics [−][src]
pub(super) struct WorkerMetrics {
command_queue: DeleteOnDropGauge<'static, AtomicI64, Vec<String>>,
pending_peeks: DeleteOnDropGauge<'static, AtomicI64, Vec<String>>,
commands_processed: CommandsProcessedMetrics,
}
Expand description
Prometheus metrics that we would like to easily export
Fields
command_queue: DeleteOnDropGauge<'static, AtomicI64, Vec<String>>
The size of the command queue
Updated every time we decide to handle some
pending_peeks: DeleteOnDropGauge<'static, AtomicI64, Vec<String>>
The number of pending peeks
Updated every time we successfully fulfill a peek
commands_processed: CommandsProcessedMetrics
Total number of commands of each type processed
Implementations
Observe that we have executed a command. Must be paired with WorkerMetrics::observe_command_finish
Observe that we have executed a command
Auto Trait Implementations
impl !RefUnwindSafe for WorkerMetrics
impl Send for WorkerMetrics
impl Sync for WorkerMetrics
impl Unpin for WorkerMetrics
impl !UnwindSafe for WorkerMetrics
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more