Class ExemplarSamplerConfig
Object
ExemplarSamplerConfig
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorDescriptionExemplarSamplerConfig
(ExemplarsProperties properties, double[] histogramClassicUpperBounds) Constructor for classic histogram metrics.ExemplarSamplerConfig
(ExemplarsProperties properties, int numberOfExemplars) Constructor for all metric types except classic histograms. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
May benull
.long
long
int
Defaults: Counters have one Exemplar, native histograms and summaries have 4 Exemplars, classic histograms have one Exemplar per bucket.long
-
Field Details
-
DEFAULT_MIN_RETENTION_PERIOD_SECONDS
- See Also:
-
DEFAULT_MAX_RETENTION_PERIOD_SECONDS
- See Also:
-
-
Constructor Details
-
ExemplarSamplerConfig
Constructor for all metric types except classic histograms.- Parameters:
properties
- SeePrometheusProperties.getExemplarProperties()
.numberOfExemplars
- Counters have 1 Exemplar, native histograms and summaries have 4 Exemplars by default. For classic histogram useExemplarSamplerConfig(ExemplarsProperties, double[])
.
-
ExemplarSamplerConfig
Constructor for classic histogram metrics.- Parameters:
properties
- SeePrometheusProperties.getExemplarProperties()
.histogramClassicUpperBounds
- the ExemplarSampler will provide one Exemplar per histogram bucket. Must be sorted, and must include the +Inf bucket.
-
-
Method Details
-
getHistogramClassicUpperBounds
May benull
. -
getMinRetentionPeriodMillis
-
getMaxRetentionPeriodMillis
-
getSampleIntervalMillis
-
getNumberOfExemplars
Defaults: Counters have one Exemplar, native histograms and summaries have 4 Exemplars, classic histograms have one Exemplar per bucket.
-