Skip to main content

Module stats

Module stats 

Source
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 SampledStat that maintains a simple average over its samples.
CumulativeCount
A non-sampled version of WindowedCount maintained over all time.
CumulativeSum
A non-sampled cumulative total maintained over all time. This is a non-sampled version of WindowedSum.
Max
A SampledStat that gives the max over its samples.
Meter
A compound stat that includes a rate metric and a cumulative total metric.
Min
A SampledStat that 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 SampledStat implementations 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.
SimpleRate
A simple rate: the rate is incrementally calculated based on the elapsed time between the earliest reading and now.
Value
An instantaneous value.
WindowedCount
A SampledStat that maintains a simple count of what it has seen. This is a special kind of crate::common::metrics::stats::WindowedSum that always records a value of 1 instead of the provided value. In other words, it counts the number of record invocations, instead of summing the recorded values.
WindowedSum
A SampledStat that maintains the sum of what it has seen. This is a sampled version of crate::common::metrics::stats::CumulativeSum.