Package io.prometheus.metrics.config
Class ExemplarsProperties
java.lang.Object
io.prometheus.metrics.config.ExemplarsProperties
Properties starting with io.prometheus.exemplars
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExemplarsProperties(Integer minRetentionPeriodSeconds, Integer maxRetentionPeriodSeconds, Integer sampleIntervalMilliseconds) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExemplarsProperties.Builderbuilder()Maximum time how long Exemplars are kept before they are evicted.Minimum time how long Exemplars are kept before they may be replaced by new Exemplars.Time between attempts to sample new Exemplars.(package private) static ExemplarsPropertiesload(PropertySource propertySource) Note that this will remove entries frompropertySource.
-
Field Details
-
PREFIX
- See Also:
-
MIN_RETENTION_PERIOD_SECONDS
- See Also:
-
MAX_RETENTION_PERIOD_SECONDS
- See Also:
-
SAMPLE_INTERVAL_MILLISECONDS
- See Also:
-
minRetentionPeriodSeconds
-
maxRetentionPeriodSeconds
-
sampleIntervalMilliseconds
-
-
Constructor Details
-
ExemplarsProperties
-
-
Method Details
-
getMinRetentionPeriodSeconds
Minimum time how long Exemplars are kept before they may be replaced by new Exemplars.Default see
ExemplarSamplerConfig.DEFAULT_MIN_RETENTION_PERIOD_SECONDS -
getMaxRetentionPeriodSeconds
Maximum time how long Exemplars are kept before they are evicted.Default see
ExemplarSamplerConfig.DEFAULT_MAX_RETENTION_PERIOD_SECONDS -
getSampleIntervalMilliseconds
Time between attempts to sample new Exemplars. This is a performance improvement for high-frequency applications, because with the sample interval we make sure that the exemplar sampler is not called for every single request.Default see
ExemplarSamplerConfig.DEFAULT_SAMPLE_INTERVAL_MILLISECONDS -
load
Note that this will remove entries frompropertySource. This is because we want to know if there are unused properties remaining after all properties have been loaded.- Throws:
PrometheusPropertiesException
-
builder
-