Module io.prometheus.metrics.core
Class ExemplarSamplerConfig
Object
ExemplarSamplerConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSeeExemplarsProperties.getMaxRetentionPeriodSeconds()static final intSeeExemplarsProperties.getMinRetentionPeriodSeconds() -
Constructor Summary
ConstructorsConstructorDescriptionExemplarSamplerConfig(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.longSeeExemplarsProperties.getMaxRetentionPeriodSeconds()longSeeExemplarsProperties.getMinRetentionPeriodSeconds()intDefaults: Counters have one Exemplar, native histograms and summaries have 4 Exemplars, classic histograms have one Exemplar per bucket.longSeeExemplarsProperties.getSampleIntervalMilliseconds()
-
Field Details
-
DEFAULT_MIN_RETENTION_PERIOD_SECONDS
SeeExemplarsProperties.getMinRetentionPeriodSeconds()- See Also:
-
DEFAULT_MAX_RETENTION_PERIOD_SECONDS
SeeExemplarsProperties.getMaxRetentionPeriodSeconds()- 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
SeeExemplarsProperties.getMinRetentionPeriodSeconds() -
getMaxRetentionPeriodMillis
SeeExemplarsProperties.getMaxRetentionPeriodSeconds() -
getSampleIntervalMillis
SeeExemplarsProperties.getSampleIntervalMilliseconds() -
getNumberOfExemplars
Defaults: Counters have one Exemplar, native histograms and summaries have 4 Exemplars, classic histograms have one Exemplar per bucket.
-