Package io.prometheus.metrics.config
Class MetricsProperties
Object
MetricsProperties
Properties starting with io.prometheus.metrics
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionMetricsProperties
(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 TypeMethodDescriptionstatic MetricsProperties.Builder
builder()
This is the only configuration property that can be applied to all metric types.SeeHistogram.Builder.classicOnly()
SeeHistogram.Builder.classicBuckets()
SeeHistogram.Builder.nativeInitialSchema()
SeeHistogram.Builder.nativeMaxNumberOfBuckets()
SeeHistogram.Builder.nativeMaxZeroThreshold()
SeeHistogram.Builder.nativeMinZeroThreshold()
SeeHistogram.Builder.nativeOnly()
SeeHistogram.Builder.nativeResetDuration()
SeeSummary.Builder.maxAgeSeconds()
SeeSummary.Builder.numberOfAgeBuckets()
SeeSummary.Builder.quantile()
SeeSummary.Builder.quantile()
-
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.classicBuckets()
-
getHistogramNativeInitialSchema
SeeHistogram.Builder.nativeInitialSchema()
-
getHistogramNativeMinZeroThreshold
SeeHistogram.Builder.nativeMinZeroThreshold()
-
getHistogramNativeMaxZeroThreshold
SeeHistogram.Builder.nativeMaxZeroThreshold()
-
getHistogramNativeMaxNumberOfBuckets
SeeHistogram.Builder.nativeMaxNumberOfBuckets()
-
getHistogramNativeResetDurationSeconds
SeeHistogram.Builder.nativeResetDuration()
-
getSummaryQuantiles
SeeSummary.Builder.quantile()
-
getSummaryQuantileErrors
SeeSummary.Builder.quantile()
Returns
null
only 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.maxAgeSeconds()
-
getSummaryNumberOfAgeBuckets
SeeSummary.Builder.numberOfAgeBuckets()
-
builder
-