Uses of Class
io.prometheus.metrics.core.metrics.Histogram.Builder
-
Uses of Histogram.Builder in io.prometheus.metrics.core.metrics
Modifier and TypeMethodDescriptionstatic Histogram.Builder
Histogram.builder()
static Histogram.Builder
Histogram.builder
(PrometheusProperties config) Histogram.Builder.classicExponentialUpperBounds
(double start, double factor, int count) Create classic histogram bucxkets with exponential boundaries.Histogram.Builder.classicLinearUpperBounds
(double start, double width, int count) Create classic histogram buckets with linear bucket boundaries.Histogram.Builder.classicOnly()
Use the classic histogram representation only, i.e.Histogram.Builder.classicUpperBounds
(double... upperBounds) Set the upper bounds for the classic histogram buckets.Histogram.Builder.nativeInitialSchema
(int nativeSchema) The schema is a number in [-4, 8] defining the resolution of the native histogram.Histogram.Builder.nativeMaxNumberOfBuckets
(int nativeMaxBuckets) Limit the number of native buckets.Histogram.Builder.nativeMaxZeroThreshold
(double nativeMaxZeroThreshold) Native histogram buckets get smaller and smaller the closer they get to zero.Histogram.Builder.nativeMinZeroThreshold
(double nativeMinZeroThreshold) Native histogram buckets get smaller and smaller the closer they get to zero.Histogram.Builder.nativeOnly()
Use the native histogram representation only, i.e.Histogram.Builder.nativeResetDuration
(long duration, TimeUnit unit) If the histogram needed to be scaled down becausenativeMaxNumberOfBuckets(int)
was exceeded, reset the histogram after a certain time interval to go back to the originalnativeInitialSchema(int)
.