Package io.dropwizard.metrics5
Class LockFreeExponentiallyDecayingReservoir.Builder
java.lang.Object
io.dropwizard.metrics5.LockFreeExponentiallyDecayingReservoir.Builder
- Enclosing class:
- LockFreeExponentiallyDecayingReservoir
By default this uses a size of 1028 elements, which offers a 99.9%
confidence level with a 5% margin of error assuming a normal distribution, and an alpha
factor of 0.015, which heavily biases the reservoir to the past 5 minutes of measurements.
-
Method Summary
Modifier and TypeMethodDescriptionalpha
(double value) Alpha is the exponential decay factor.build()
Clock instance used for decay.rescaleThreshold
(Duration value) Interval at which this reservoir is rescaled.size
(int value) Maximum number of samples to keep in the reservoir.
-
Method Details
-
size
Maximum number of samples to keep in the reservoir. Once this number is reached older samples are replaced (based on weight, with some amount of random jitter). -
alpha
Alpha is the exponential decay factor. Higher values bias results more heavily toward newer values. -
rescaleThreshold
Interval at which this reservoir is rescaled. -
clock
Clock instance used for decay. -
build
-