Package io.prometheus.metrics.config
Class MetricsProperties
java.lang.Object
io.prometheus.metrics.config.MetricsProperties
Properties starting with io.prometheus.metrics
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMetricsProperties(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 Summary
Modifier and TypeMethodDescriptionThis is the only configuration property that can be applied to all metric types.SeeHistogram.Builder.classicOnly()SeeHistogram.Builder.withClassicBuckets()SeeHistogram.Builder.withNativeInitialSchema()SeeHistogram.Builder.withNativeMaxNumberOfBuckets()SeeHistogram.Builder.withNativeMaxZeroThreshold()SeeHistogram.Builder.withNativeMinZeroThreshold()SeeHistogram.Builder.nativeOnly()SeeHistogram.Builder.withNativeResetDuration()SeeSummary.Builder.withMaxAgeSeconds()SeeSummary.Builder.withNumberOfAgeBuckets()SeeSummary.Builder.withQuantile()SeeSummary.Builder.withQuantile()static MetricsProperties.Builder
-
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
This is the only configuration property that can be applied to all metric types. You can use it to turn Exemplar support off. Default istrue. -
getHistogramNativeOnly
SeeHistogram.Builder.nativeOnly() -
getHistogramClassicOnly
SeeHistogram.Builder.classicOnly() -
getHistogramClassicUpperBounds
SeeHistogram.Builder.withClassicBuckets() -
getHistogramNativeInitialSchema
SeeHistogram.Builder.withNativeInitialSchema() -
getHistogramNativeMinZeroThreshold
SeeHistogram.Builder.withNativeMinZeroThreshold() -
getHistogramNativeMaxZeroThreshold
SeeHistogram.Builder.withNativeMaxZeroThreshold() -
getHistogramNativeMaxNumberOfBuckets
SeeHistogram.Builder.withNativeMaxNumberOfBuckets() -
getHistogramNativeResetDurationSeconds
SeeHistogram.Builder.withNativeResetDuration() -
getSummaryQuantiles
SeeSummary.Builder.withQuantile() -
getSummaryQuantileErrors
SeeSummary.Builder.withQuantile()Returns
nullonly ifgetSummaryQuantiles()is alsonull. Returns an empty list ifgetSummaryQuantiles()are specified without specifying errors. If the list is not empty, it has the same size asgetSummaryQuantiles(). -
getSummaryMaxAgeSeconds
SeeSummary.Builder.withMaxAgeSeconds() -
getSummaryNumberOfAgeBuckets
SeeSummary.Builder.withNumberOfAgeBuckets() -
newBuilder
-