Module metrics::local_stats

source ·
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.
  • A helper struct to collect metrics for byte transferred and latency.
  • A helper struct that makes it easy to get time spent in a scope.
  • A histogram that optionally holds details about each added value. These values let us compute standard deviation and median.
  • 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§

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

Functions§

Type Aliases§

  • A helper type alias for Histogram that doesn’t store details. The structure can be used in production without much memory penalty.