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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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