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. - Proto
Sink Statistics Update - Proto
Source Statistics Update - Resetting
Latency - A latency gauge that is reset on every restart.
- Resetting
Nullable Total - A numerical gauge that is always resets, but can start out as
NULL
. - Resetting
Total - A numerical gauge that is always resets.
- Sink
Statistics Update - 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. - Source
Statistics Update - 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.
- Webhook
Statistics - Statistics for webhooks.
Statics§
Traits§
- Packable
Stats - A trait that abstracts over user-facing statistics objects, used
by
spawn_statistics_scraper
. - Storage
Metric - A trait that defines the semantics storage statistics are able to have