Struct mz_persist_client::internal::metrics::ShardsMetrics
source · pub struct ShardsMetrics {Show 34 fields
_count: ComputedIntGauge,
since: IntGaugeVec,
upper: IntGaugeVec,
encoded_rollup_size: UIntGaugeVec,
encoded_diff_size: IntCounterVec,
hollow_batch_count: UIntGaugeVec,
spine_batch_count: UIntGaugeVec,
batch_part_count: UIntGaugeVec,
update_count: UIntGaugeVec,
rollup_count: UIntGaugeVec,
largest_batch_size: UIntGaugeVec,
seqnos_held: UIntGaugeVec,
seqnos_since_last_rollup: UIntGaugeVec,
gc_seqno_held_parts: UIntGaugeVec,
gc_live_diffs: UIntGaugeVec,
gc_finished: IntCounterVec,
compaction_applied: IntCounterVec,
cmd_succeeded: IntCounterVec,
usage_current_state_batches_bytes: UIntGaugeVec,
usage_current_state_rollups_bytes: UIntGaugeVec,
usage_referenced_not_current_state_bytes: UIntGaugeVec,
usage_not_leaked_not_referenced_bytes: UIntGaugeVec,
usage_leaked_bytes: UIntGaugeVec,
pubsub_push_diff_applied: IntCounterVec,
pubsub_push_diff_not_applied_stale: IntCounterVec,
pubsub_push_diff_not_applied_out_of_order: IntCounterVec,
blob_gets: IntCounterVec,
blob_sets: IntCounterVec,
live_writers: UIntGaugeVec,
unconsolidated_snapshot: IntCounterVec,
backpressure_emitted_bytes: IntCounterVec,
backpressure_last_backpressured_bytes: UIntGaugeVec,
backpressure_retired_bytes: IntCounterVec,
shards: Arc<Mutex<BTreeMap<ShardId, Weak<ShardMetrics>>>>,
}
Fields§
§_count: ComputedIntGauge
§since: IntGaugeVec
§upper: IntGaugeVec
§encoded_rollup_size: UIntGaugeVec
§encoded_diff_size: IntCounterVec
§hollow_batch_count: UIntGaugeVec
§spine_batch_count: UIntGaugeVec
§batch_part_count: UIntGaugeVec
§update_count: UIntGaugeVec
§rollup_count: UIntGaugeVec
§largest_batch_size: UIntGaugeVec
§seqnos_held: UIntGaugeVec
§seqnos_since_last_rollup: UIntGaugeVec
§gc_seqno_held_parts: UIntGaugeVec
§gc_live_diffs: UIntGaugeVec
§gc_finished: IntCounterVec
§compaction_applied: IntCounterVec
§cmd_succeeded: IntCounterVec
§usage_current_state_batches_bytes: UIntGaugeVec
§usage_current_state_rollups_bytes: UIntGaugeVec
§usage_referenced_not_current_state_bytes: UIntGaugeVec
§usage_not_leaked_not_referenced_bytes: UIntGaugeVec
§usage_leaked_bytes: UIntGaugeVec
§pubsub_push_diff_applied: IntCounterVec
§pubsub_push_diff_not_applied_stale: IntCounterVec
§pubsub_push_diff_not_applied_out_of_order: IntCounterVec
§blob_gets: IntCounterVec
§blob_sets: IntCounterVec
§live_writers: UIntGaugeVec
§unconsolidated_snapshot: IntCounterVec
§backpressure_emitted_bytes: IntCounterVec
§backpressure_last_backpressured_bytes: UIntGaugeVec
§backpressure_retired_bytes: IntCounterVec
§shards: Arc<Mutex<BTreeMap<ShardId, Weak<ShardMetrics>>>>
Implementations§
source§impl ShardsMetrics
impl ShardsMetrics
fn new(registry: &MetricsRegistry) -> Self
pub fn shard(&self, shard_id: &ShardId, name: &str) -> Arc<ShardMetrics>
fn compute<F: FnMut(&ShardMetrics)>( shards: &Arc<Mutex<BTreeMap<ShardId, Weak<ShardMetrics>>>>, f: F )
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ShardsMetrics
impl Send for ShardsMetrics
impl Sync for ShardsMetrics
impl Unpin for ShardsMetrics
impl !UnwindSafe for ShardsMetrics
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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Creates a shared type from an unshared type.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.