Package org.apache.kafka.common.metrics.stats
package org.apache.kafka.common.metrics.stats
Provides methods of statistically aggregating metrics upon emission.
-
ClassDescriptionA
SampledStat
that maintains a simple average over its samples.A non-sampled version ofWindowedCount
maintained over all time.An non-sampled cumulative total maintained over all time.ACompoundStat
that represents a normalized distribution with aFrequency
metric for each bucketed value.Definition of a frequency metric used in aFrequencies
compound statistic.An algorithm for determining the bin in which a value is to be placed as well as calculating the upper end of each bin.A scheme for calculating the bins where the width of each bin is a constant determined by the range of values and the number of bins.A scheme for calculating the bins where the width of each bin is one more than the previous bin, and therefore the bin widths are increasing at a linear rate.ASampledStat
that gives the max over its samples.A compound stat that includes a rate metric and a cumulative total metric.ASampledStat
that gives the min over its samples.A compound stat that reports one or more percentilesThe rate of the given quantity.A SampledStat records a single scalar value measured over one or more samples.A simple rate the rate is incrementally calculated based on the elapsed time between the earliest reading and now.TheTokenBucket
is aMeasurableStat
implementing a token bucket algorithm that is usable within aSensor
.An instantaneous value.ASampledStat
that maintains a simple count of what it has seen.ASampledStat
that maintains the sum of what it has seen.