Class MetricsProperties
Object
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 TypeMethodDescriptionstatic MetricsProperties.Builderbuilder()This is the only configuration property that can be applied to all metric types.SeeHistogram.Builder.classicOnly()SeeHistogram.Builder.classicUpperBounds()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(@Nullable Boolean exemplarsEnabled, @Nullable Boolean histogramNativeOnly, @Nullable Boolean histogramClassicOnly, @Nullable List<Double> histogramClassicUpperBounds, @Nullable Integer histogramNativeInitialSchema, @Nullable Double histogramNativeMinZeroThreshold, @Nullable Double histogramNativeMaxZeroThreshold, @Nullable Integer histogramNativeMaxNumberOfBuckets, @Nullable Long histogramNativeResetDurationSeconds, @Nullable List<Double> summaryQuantiles, @Nullable List<Double> summaryQuantileErrors, @Nullable Long summaryMaxAgeSeconds, @Nullable 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.classicUpperBounds() -
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
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.maxAgeSeconds() -
getSummaryNumberOfAgeBuckets
SeeSummary.Builder.numberOfAgeBuckets() -
builder
-