Class MetricsProperties

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

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

  • Method Details

    • getExemplarsEnabled

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

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

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

      @Nullable public List<Double> getHistogramClassicUpperBounds()
      See Histogram.Builder.classicUpperBounds()
    • getHistogramNativeInitialSchema

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

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

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

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

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

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

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

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

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

      public static MetricsProperties.Builder builder()