Struct dataflow::source::PartitionMetrics[][src]

pub struct PartitionMetrics {
    offset_ingested: DeleteOnDropGauge<'static, AtomicI64, Vec<String>>,
    offset_received: DeleteOnDropGauge<'static, AtomicI64, Vec<String>>,
    closed_ts: DeleteOnDropGauge<'static, AtomicU64, Vec<String>>,
    messages_ingested: DeleteOnDropCounter<'static, AtomicI64, Vec<String>>,
    last_offset: i64,
    last_timestamp: i64,
}
Expand description

Partition-specific metrics, recorded to both Prometheus and a system table

Fields

offset_ingested: DeleteOnDropGauge<'static, AtomicI64, Vec<String>>

Highest offset that has been received by the source and timestamped

offset_received: DeleteOnDropGauge<'static, AtomicI64, Vec<String>>

Highest offset that has been received by the source

closed_ts: DeleteOnDropGauge<'static, AtomicU64, Vec<String>>

Value of the highest timestamp that is closed (for which all messages have been ingested)

messages_ingested: DeleteOnDropCounter<'static, AtomicI64, Vec<String>>

Total number of messages that have been received by the source and timestamped

last_offset: i64last_timestamp: i64

Implementations

Record the latest offset ingested high-water mark

Initialises partition metrics for a given (source_id, partition_id)

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