Skip to main content

feldera_storage/
metrics.rs

1use crate::histogram::ExponentialHistogram;
2
3/// Histogram of read latency, in microseconds.
4pub static READ_LATENCY_MICROSECONDS: ExponentialHistogram = ExponentialHistogram::new();
5
6/// Histogram of write latency, in microseconds.
7pub static WRITE_LATENCY_MICROSECONDS: ExponentialHistogram = ExponentialHistogram::new();
8
9/// Histogram of latency syncing one file to stable storage, in microseconds.
10pub static SYNC_LATENCY_MICROSECONDS: ExponentialHistogram = ExponentialHistogram::new();
11
12/// Histogram of latency making a checkpoint's files durable, in microseconds.
13///
14/// One observation per `commit_all`, whichever way the backend does it, so the
15/// strategies can be compared against each other. Separate from
16/// [SYNC_LATENCY_MICROSECONDS], which times a single file: summing that one
17/// does not give this one, because the syncs it times overlap.
18pub static COMMIT_ALL_LATENCY_MICROSECONDS: ExponentialHistogram = ExponentialHistogram::new();
19
20/// Histogram of read block sizes, in bytes.
21pub static READ_BLOCKS_BYTES: ExponentialHistogram = ExponentialHistogram::new();
22
23/// Histogram of write block sizes, in bytes.
24pub static WRITE_BLOCKS_BYTES: ExponentialHistogram = ExponentialHistogram::new();