Uses of Class
io.prometheus.metrics.model.snapshots.Labels
Packages that use Labels
-
Uses of Labels in io.prometheus.metrics.model.snapshots
Fields in io.prometheus.metrics.model.snapshots declared as LabelsModifier and TypeFieldDescriptionstatic final LabelsLabels.EMPTYprotected LabelsDataPointSnapshot.Builder.labelsMethods in io.prometheus.metrics.model.snapshots that return LabelsModifier and TypeMethodDescriptionCreate a new Labels instance containing the labels of this and the label passed as name and value.Labels.Builder.build()static LabelsSnapshotEscaper.escapeLabels(Labels labels, io.prometheus.metrics.config.EscapingScheme scheme) DataPointSnapshot.getLabels()DuplicateLabelsException.getLabels()Exemplar.getLabels()In most cases labels will containExemplar.TRACE_IDandExemplar.SPAN_ID, but this is not required.Create a new Labels instance containing the labels of this and the labels of other.Create a new Labels instance containing the labels of this and the labels passed as names and values.static LabelsCreate a new Labels instance.static LabelsCreate a new Labels instance.static LabelsCreate a new Labels instance.Methods in io.prometheus.metrics.model.snapshots with parameters of type LabelsModifier and TypeMethodDescriptionintstatic LabelsSnapshotEscaper.escapeLabels(Labels labels, io.prometheus.metrics.config.EscapingScheme scheme) static StringSnapshotEscaper.getSnapshotLabelName(Labels labels, int index, io.prometheus.metrics.config.EscapingScheme scheme) booleanLabels.hasSameNames(Labels other) booleanLabels.hasSameValues(Labels other) Create a new Labels instance containing the labels of this and the labels of other.Constructors in io.prometheus.metrics.model.snapshots with parameters of type LabelsModifierConstructorDescriptionCounterDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long createdTimestampMillis) To create a newCounterSnapshot.CounterDataPointSnapshot, you can either call the constructor directly or use the Builder withCounterSnapshot.CounterDataPointSnapshot.builder().CounterDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long createdTimestampMillis, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.CounterDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long createdTimestampMillis, long scrapeTimestampMillis, boolean internal) protectedDataPointSnapshot(Labels labels, long createdTimestampMillis, long scrapeTimestampMillis, boolean internal) protectedDistributionDataPointSnapshot(long count, double sum, Exemplars exemplars, Labels labels, long createdTimestampMillis, long scrapeTimestampMillis, boolean internal) See JavaDoc of the child classes.DuplicateLabelsException(MetricMetadata metadata, Labels labels) To create a newExemplar, you can either call the constructor directly or use the Builder withExemplar.builder().GaugeDataPointSnapshot(double value, Labels labels, Exemplar exemplar) To create a newGaugeSnapshot.GaugeDataPointSnapshot, you can either call the constructor directly or use the Builder withGaugeSnapshot.GaugeDataPointSnapshot.builder().GaugeDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.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).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.InfoDataPointSnapshot(Labels labels) To create a newInfoSnapshot.InfoDataPointSnapshot, you can either call the constructor directly or use the Builder withInfoSnapshot.InfoDataPointSnapshot.builder().InfoDataPointSnapshot(Labels labels, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.StateSetDataPointSnapshot(String[] names, boolean[] values, Labels labels) To create a newStateSetSnapshot.StateSetDataPointSnapshot, you can either call the constructor directly or use the Builder withStateSetSnapshot.StateSetDataPointSnapshot.builder().StateSetDataPointSnapshot(String[] names, boolean[] values, Labels labels, 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.UnknownDataPointSnapshot(double value, Labels labels, Exemplar exemplar) To create a newUnknownSnapshot.UnknownDataPointSnapshot, you can either call the constructor directly or use the Builder withUnknownSnapshot.UnknownDataPointSnapshot.builder().UnknownDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long scrapeTimestampMillis) Constructor with an additional scrape timestamp.