Expand description
Concrete statistics (org.apache.kafka.common.metrics.stats).
Re-exports§
pub use sampled_stat::Sample;pub use sampled_stat::SampledStat;pub use sampled_stat::SampledStatKind;
Modules§
- sampled_
stat - A scalar value measured over one or more sampling windows
(
org.apache.kafka.common.metrics.stats.SampledStat).
Structs§
- Avg
- A
SampledStatthat maintains a simple average over its samples. - Cumulative
Count - A non-sampled version of
WindowedCountmaintained over all time. - Cumulative
Sum - A non-sampled cumulative total maintained over all time. This is a
non-sampled version of
WindowedSum. - Max
- A
SampledStatthat gives the max over its samples. - Meter
- A compound stat that includes a rate metric and a cumulative total metric.
- Min
- A
SampledStatthat gives the min over its samples. - Rate
- The rate of the given quantity. By default this is the total observed over a
set of samples from a sampled statistic divided by the elapsed time over the
sample windows. Alternative
SampledStatimplementations can be provided, however, to record the rate of occurrences (e.g. the count of values measured over the time interval) or other such values. - Simple
Rate - A simple rate: the rate is incrementally calculated based on the elapsed time between the earliest reading and now.
- Value
- An instantaneous value.
- Windowed
Count - A
SampledStatthat maintains a simple count of what it has seen. This is a special kind ofcrate::common::metrics::stats::WindowedSumthat always records a value of1instead of the provided value. In other words, it counts the number ofrecordinvocations, instead of summing the recorded values. - Windowed
Sum - A
SampledStatthat maintains the sum of what it has seen. This is a sampled version ofcrate::common::metrics::stats::CumulativeSum.