Module statistics

Source
Expand description

These structure represents a full set up updates for the mz_source_statistics_raw and mz_sink_statistics_raw tables for a specific source-worker/sink-worker pair. They are structured like this for simplicity and efficiency: Each storage worker can individually collect and consolidate metrics, then control how much StorageResponse traffic is produced when sending updates back to the controller to be written.

The proto conversions for this types are in the client module, for now.

Structs§

Boolean
A boolean gauge that is never reset.
ControllerSinkStatistics
Statistics that we keep in the controller about a given collection (identified by id) on a given replica (identified by replica_id).
ControllerSourceStatistics
Statistics that we keep in the controller about a given collection (identified by id) on a given replica (identified by replica_id).
Counter
A counter that never resets.
Gauge
A gauge that has semantics based on the StorageMetric implementation of its inner.
ProtoSinkStatisticsUpdate
ProtoSourceStatisticsUpdate
ResettingLatency
A latency gauge that is reset on every restart.
ResettingNullableTotal
A numerical gauge that is always resets, but can start out as NULL.
ResettingTotal
A numerical gauge that is always resets.
SinkStatisticsUpdate
An update as reported from a storage instance. The semantics of each field are documented above in MZ_SINK_STATISTICS_RAW_DESC, and encoded in the field types.
SourceStatisticsUpdate
An update as reported from a storage instance. The semantics of each field are documented above in MZ_SOURCE_STATISTICS_RAW_DESC, and encoded in the field types.
Total
A numerical gauge that never regresses.
WebhookStatistics
Statistics for webhooks.

Statics§

MZ_SINK_STATISTICS_RAW_DESC
MZ_SOURCE_STATISTICS_RAW_DESC

Traits§

ExpirableStats
Stats that can get out-of-date and should then get reaped.
PackableStats
A trait that abstracts over user-facing statistics objects that can be packed into a Row and unpacked again. That is they round-trip.
StorageMetric
A trait that defines the semantics storage statistics are able to have
ZeroInitializedStats
Stats that should be initialized with a row of zeroes, that is we want the first data to show up in the builtin stats collection to be zeroes.