Struct mz_persist_client::internal::metrics::Metrics
source · pub struct Metrics {Show 30 fields
_vecs: MetricsVecs,
_uptime: ComputedGauge,
pub blob: BlobMetrics,
pub consensus: ConsensusMetrics,
pub cmds: CmdsMetrics,
pub retries: RetriesMetrics,
pub user: BatchWriteMetrics,
pub read: BatchPartReadMetrics,
pub compaction: CompactionMetrics,
pub gc: GcMetrics,
pub lease: LeaseMetrics,
pub codecs: CodecsMetrics,
pub state: StateMetrics,
pub shards: ShardsMetrics,
pub audit: UsageAuditMetrics,
pub locks: LocksMetrics,
pub watch: WatchMetrics,
pub pubsub_client: PubSubClientMetrics,
pub pushdown: PushdownMetrics,
pub consolidation: ConsolidationMetrics,
pub blob_cache_mem: BlobMemCache,
pub tasks: TasksMetrics,
pub columnar: ColumnarMetrics,
pub schema: SchemaMetrics,
pub inline: InlineMetrics,
pub(crate) semaphore: SemaphoreMetrics,
pub sink: SinkMetrics,
pub s3_blob: S3BlobMetrics,
pub postgres_consensus: PostgresClientMetrics,
pub(crate) registry: MetricsRegistry,
}
Expand description
Prometheus monitoring metrics.
Intentionally not Clone because we expect this to be passed around in an Arc.
Fields§
§_vecs: MetricsVecs
§_uptime: ComputedGauge
§blob: BlobMetrics
Metrics for Blob usage.
consensus: ConsensusMetrics
Metrics for Consensus usage.
cmds: CmdsMetrics
Metrics of command evaluation.
retries: RetriesMetrics
Metrics for each retry loop.
user: BatchWriteMetrics
Metrics for batches written directly on behalf of a user (BatchBuilder or one of the sugar methods that use it).
read: BatchPartReadMetrics
Metrics for reading batch parts
compaction: CompactionMetrics
Metrics for compaction.
gc: GcMetrics
Metrics for garbage collection.
lease: LeaseMetrics
Metrics for leasing and automatic lease expiry.
codecs: CodecsMetrics
Metrics for various encodings and decodings.
state: StateMetrics
Metrics for (incremental) state updates and fetches.
shards: ShardsMetrics
Metrics for various per-shard measurements.
audit: UsageAuditMetrics
Metrics for auditing persist usage
locks: LocksMetrics
Metrics for locking.
watch: WatchMetrics
Metrics for StateWatch.
pubsub_client: PubSubClientMetrics
Metrics for PubSub client.
pushdown: PushdownMetrics
Metrics for mfp/filter pushdown.
consolidation: ConsolidationMetrics
Metrics for consolidation.
blob_cache_mem: BlobMemCache
Metrics for blob caching.
tasks: TasksMetrics
Metrics for tokio tasks.
columnar: ColumnarMetrics
Metrics for columnar data encoding and decoding.
schema: SchemaMetrics
Metrics for schemas and the schema registry.
inline: InlineMetrics
Metrics for inline writes.
semaphore: SemaphoreMetrics
Semaphore to limit memory/disk use by fetches.
sink: SinkMetrics
Metrics for the persist sink.
s3_blob: S3BlobMetrics
Metrics for S3-backed blob implementation
postgres_consensus: PostgresClientMetrics
Metrics for Postgres-backed consensus implementation
registry: MetricsRegistry
Implementations§
source§impl Metrics
impl Metrics
sourcepub fn new(cfg: &PersistConfig, registry: &MetricsRegistry) -> Self
pub fn new(cfg: &PersistConfig, registry: &MetricsRegistry) -> Self
Returns a new Metrics instance connected to the given registry.
sourcepub fn write_amplification(&self) -> f64
pub fn write_amplification(&self) -> f64
Returns the current lifetime write amplification reflected in these metrics.
Only exposed for tests, persistcli, and benchmarks.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Metrics
impl !RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl !UnwindSafe for Metrics
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
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>
T
in a tonic::Request
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>
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
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)
std::ops::AddAssign
, for types that do not implement AddAssign
.