pub struct ShardsMetrics {Show 44 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,
batch_part_version_count: UIntGaugeVec,
batch_part_version_bytes: 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,
rewrite_part_count: UIntGaugeVec,
inline_part_count: UIntGaugeVec,
inline_part_bytes: UIntGaugeVec,
compact_batches: UIntGaugeVec,
compacting_batches: UIntGaugeVec,
noncompact_batches: UIntGaugeVec,
schema_registry_version_count: UIntGaugeVec,
inline_backpressure_count: 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
§batch_part_version_count: UIntGaugeVec
§batch_part_version_bytes: 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
§rewrite_part_count: UIntGaugeVec
§inline_part_count: UIntGaugeVec
§inline_part_bytes: UIntGaugeVec
§compact_batches: UIntGaugeVec
§compacting_batches: UIntGaugeVec
§noncompact_batches: UIntGaugeVec
§schema_registry_version_count: UIntGaugeVec
§inline_backpressure_count: 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 Freeze for ShardsMetrics
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
.Source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.