Class MetricsProperties

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

public class MetricsProperties extends Object
Properties starting with io.prometheus.metrics
  • Constructor Details

    • MetricsProperties

      public MetricsProperties(Boolean exemplarsEnabled, Boolean histogramNativeOnly, Boolean histogramClassicOnly, List<Double> histogramClassicUpperBounds, Integer histogramNativeInitialSchema, Double histogramNativeMinZeroThreshold, Double histogramNativeMaxZeroThreshold, Integer histogramNativeMaxNumberOfBuckets, Long histogramNativeResetDurationSeconds, List<Double> summaryQuantiles, List<Double> summaryQuantileErrors, Long summaryMaxAgeSeconds, Integer summaryNumberOfAgeBuckets)
  • Method Details

    • getExemplarsEnabled

      public Boolean getExemplarsEnabled()
      This is the only configuration property that can be applied to all metric types. You can use it to turn Exemplar support off. Default is true.
    • getHistogramNativeOnly

      public Boolean getHistogramNativeOnly()
      See Histogram.Builder.nativeOnly()
    • getHistogramClassicOnly

      public Boolean getHistogramClassicOnly()
      See Histogram.Builder.classicOnly()
    • getHistogramClassicUpperBounds

      public List<Double> getHistogramClassicUpperBounds()
      See Histogram.Builder.classicBuckets()
    • getHistogramNativeInitialSchema

      public Integer getHistogramNativeInitialSchema()
      See Histogram.Builder.nativeInitialSchema()
    • getHistogramNativeMinZeroThreshold

      public Double getHistogramNativeMinZeroThreshold()
      See Histogram.Builder.nativeMinZeroThreshold()
    • getHistogramNativeMaxZeroThreshold

      public Double getHistogramNativeMaxZeroThreshold()
      See Histogram.Builder.nativeMaxZeroThreshold()
    • getHistogramNativeMaxNumberOfBuckets

      public Integer getHistogramNativeMaxNumberOfBuckets()
      See Histogram.Builder.nativeMaxNumberOfBuckets()
    • getHistogramNativeResetDurationSeconds

      public Long getHistogramNativeResetDurationSeconds()
      See Histogram.Builder.nativeResetDuration()
    • getSummaryQuantiles

      public List<Double> getSummaryQuantiles()
      See Summary.Builder.quantile()
    • getSummaryQuantileErrors

      public List<Double> getSummaryQuantileErrors()
      See Summary.Builder.quantile()

      Returns null only if getSummaryQuantiles() is also null. Returns an empty list if getSummaryQuantiles() are specified without specifying errors. If the list is not empty, it has the same size as getSummaryQuantiles().

    • getSummaryMaxAgeSeconds

      public Long getSummaryMaxAgeSeconds()
      See Summary.Builder.maxAgeSeconds()
    • getSummaryNumberOfAgeBuckets

      public Integer getSummaryNumberOfAgeBuckets()
      See Summary.Builder.numberOfAgeBuckets()
    • builder

      public static MetricsProperties.Builder builder()