Uses of Class
io.prometheus.metrics.model.snapshots.Exemplars
Packages that use Exemplars
Package
Description
-
Uses of Exemplars in io.prometheus.metrics.core.exemplars
Methods in io.prometheus.metrics.core.exemplars that return Exemplars -
Uses of Exemplars in io.prometheus.metrics.expositionformats
Methods in io.prometheus.metrics.expositionformats with parameters of type ExemplarsModifier and TypeMethodDescriptionprivate voidOpenMetrics2TextFormatWriter.writeCountAndSum(Writer writer, MetricMetadata metadata, DistributionDataPointSnapshot data, String countSuffix, String sumSuffix, Exemplars exemplars, EscapingScheme scheme) private voidOpenMetricsTextFormatWriter.writeCountAndSum(Writer writer, MetricMetadata metadata, DistributionDataPointSnapshot data, String countSuffix, String sumSuffix, Exemplars exemplars, EscapingScheme scheme) -
Uses of Exemplars in io.prometheus.metrics.model.snapshots
Fields in io.prometheus.metrics.model.snapshots declared as ExemplarsModifier and TypeFieldDescriptionstatic final ExemplarsExemplars.EMPTYEMPTY means no Exemplars.protected ExemplarsDistributionDataPointSnapshot.Builder.exemplarsprivate final ExemplarsDistributionDataPointSnapshot.exemplarsMethods in io.prometheus.metrics.model.snapshots that return ExemplarsModifier and TypeMethodDescriptionExemplars.Builder.build()static ExemplarsSnapshotEscaper.escapeExemplars(Exemplars exemplars, EscapingScheme scheme) DistributionDataPointSnapshot.getExemplars()May beExemplars.EMPTY, but will never benull.static ExemplarsCreate a new Exemplars instance.static ExemplarsExemplars.of(Collection<Exemplar> exemplars) Create a new Exemplars instance.Methods in io.prometheus.metrics.model.snapshots with parameters of type ExemplarsModifier and TypeMethodDescriptionstatic ExemplarsSnapshotEscaper.escapeExemplars(Exemplars exemplars, EscapingScheme scheme) private static booleanSnapshotEscaper.exemplarsNeedsEscaping(Exemplars exemplars, EscapingScheme scheme) Constructors in io.prometheus.metrics.model.snapshots with parameters of type ExemplarsModifierConstructorDescriptionprotectedDistributionDataPointSnapshot(long count, double sum, Exemplars exemplars, Labels labels, long createdTimestampMillis, long scrapeTimestampMillis, boolean internal) See JavaDoc of the child classes.HistogramDataPointSnapshot(int nativeSchema, long nativeZeroCount, double nativeZeroThreshold, NativeHistogramBuckets nativeBucketsForPositiveValues, NativeHistogramBuckets nativeBucketsForNegativeValues, double sum, Labels labels, Exemplars exemplars, long createdTimestampMillis) Constructor for native histograms (as opposed to classic histograms).HistogramDataPointSnapshot(ClassicHistogramBuckets classicBuckets, double sum, Labels labels, Exemplars exemplars, long createdTimestampMillis) Constructor for classic histograms (as opposed to native histograms).privateHistogramDataPointSnapshot(ClassicHistogramBuckets classicBuckets, int nativeSchema, double sum, Labels labels, Exemplars exemplars, long createdTimestampMillis, long scrapeTimestampMillis, long count, NativeHistogramBuckets nativeBucketsForPositiveValues, NativeHistogramBuckets nativeBucketsForNegativeValues, long nativeZeroCount, double nativeZeroThreshold, boolean internal) HistogramDataPointSnapshot(ClassicHistogramBuckets classicBuckets, int nativeSchema, long nativeZeroCount, double nativeZeroThreshold, NativeHistogramBuckets nativeBucketsForPositiveValues, NativeHistogramBuckets nativeBucketsForNegativeValues, double sum, Labels labels, Exemplars exemplars, long createdTimestampMillis) Constructor for a histogram with both, classic and native data.HistogramDataPointSnapshot(ClassicHistogramBuckets classicBuckets, int nativeSchema, long nativeZeroCount, double nativeZeroThreshold, NativeHistogramBuckets nativeBucketsForPositiveValues, NativeHistogramBuckets nativeBucketsForNegativeValues, double sum, Labels labels, Exemplars exemplars, long createdTimestampMillis, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.SummaryDataPointSnapshot(long count, double sum, Quantiles quantiles, Labels labels, Exemplars exemplars, long createdTimestampMillis) To create a newSummarySnapshot.SummaryDataPointSnapshot, you can either call the constructor directly or use the Builder withSummarySnapshot.SummaryDataPointSnapshot.builder().SummaryDataPointSnapshot(long count, double sum, Quantiles quantiles, Labels labels, Exemplars exemplars, long createdTimestampMillis, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.privateSummaryDataPointSnapshot(long count, double sum, Quantiles quantiles, Labels labels, Exemplars exemplars, long createdTimestampMillis, long scrapeTimestampMillis, boolean internal)