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.
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§

PackableStats
A trait that abstracts over user-facing statistics objects, used by spawn_statistics_scraper.
StorageMetric
A trait that defines the semantics storage statistics are able to have