pub struct Metrics {
Show 14 fields 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 postgres_consensus: PostgresConsensusMetrics, /* private fields */
}
Expand description

Prometheus monitoring metrics.

Intentionally not Clone because we expect this to be passed around in an Arc.

Fields

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

postgres_consensus: PostgresConsensusMetrics

Metrics for Postgres-backed consensus implementation

Implementations

Returns a new Metrics instance connected to the given registry.

Returns the current lifetime write amplification reflected in these metrics.

Only exposed for tests, persistcli, and benchmarks.

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request
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