Class ExemplarsProperties

java.lang.Object
io.prometheus.metrics.config.ExemplarsProperties

public class ExemplarsProperties extends Object
Properties starting with io.prometheus.exemplars
  • Method Details

    • getMinRetentionPeriodSeconds

      @Nullable public Integer 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

      @Nullable public Integer getMaxRetentionPeriodSeconds()
      Maximum time how long Exemplars are kept before they are evicted.

      Default see ExemplarSamplerConfig.DEFAULT_MAX_RETENTION_PERIOD_SECONDS

    • getSampleIntervalMilliseconds

      @Nullable public Integer 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

    • builder

      public static ExemplarsProperties.Builder builder()