Expand description
This module contains stats that useful on the system. Local stats may not a be in state to be consumed by metris reporter or it might not be efficient to report metrics in the current state to the backend.
Structs§
- Bucket 🔒
- Buckets of an histogram.
- Bytes
Latency Stats - A helper struct to collect metrics for byte transferred and latency.
- Call
OnDrop - A helper struct that makes it easy to get time spent in a scope.
- Detailed
Histogram - A histogram that optionally holds details about each added value. These values let us compute standard deviation and median.
- OpInfo
- Simple
Stat - Light weight stat struct that helps you get aggregate stats like min, max, average, count and sum. Median and standard deviation are intentionally excluded to keep the structure light weight.
Traits§
- Details
- A helper trait that can be associated with information that is tracked with a histogram. For example, if histogram is tracking latencies and for debugging reasons, if we want to track size of IO along with latency, this trait makes that posssible.
- GetStats
ForOp - Limits
- Number
Type - Summary
Stats
Functions§
- collect_
scoped_ byte_ latency_ stat - median 🔒
- Computes and returns median of
values. This is an expensive function as it sorts values to get the median. - stddev 🔒
- Computes and returns standard deviation of
values. - timed_
scope
Type Aliases§
- Histogram
- A helper type alias for Histogram that doesn’t store details. The structure can be used in production without much memory penalty.