Uses of Class
io.prometheus.metrics.model.snapshots.Labels
Packages that use Labels
Package
Description
-
Uses of Labels in io.prometheus.metrics.core.datapoints
Methods in io.prometheus.metrics.core.datapoints with parameters of type LabelsModifier and TypeMethodDescriptiondefault voidGaugeDataPoint.decWithExemplar(double amount, Labels labels) Subtractamount, and create a custom exemplar with the given labels.default voidGaugeDataPoint.decWithExemplar(Labels labels) Subtract one, and create a custom exemplar with the given labels.voidCounterDataPoint.incWithExemplar(double amount, Labels labels) Addamount, and create a custom exemplar with the given labels.default voidCounterDataPoint.incWithExemplar(long amount, Labels labels) Addamount, and create a custom exemplar with the given labels.default voidCounterDataPoint.incWithExemplar(Labels labels) Add one, and create a custom exemplar with the given labels.voidGaugeDataPoint.incWithExemplar(double amount, Labels labels) Addamount, and create a custom exemplar with the given labels.default voidGaugeDataPoint.incWithExemplar(Labels labels) Add one, and create a custom exemplar with the given labels.voidDistributionDataPoint.observeWithExemplar(double value, Labels labels) Observevalue, and create a custom exemplar with the given labels.voidGaugeDataPoint.setWithExemplar(double value, Labels labels) Set the gauge tovalue, and create a custom exemplar with the given labels. -
Uses of Labels in io.prometheus.metrics.core.exemplars
Methods in io.prometheus.metrics.core.exemplars with parameters of type LabelsModifier and TypeMethodDescriptionvoidExemplarSampler.observeWithExemplar(double value, Labels labels) -
Uses of Labels in io.prometheus.metrics.core.metrics
Methods in io.prometheus.metrics.core.metrics with parameters of type LabelsModifier and TypeMethodDescriptionMetricWithFixedMetadata.Builder.constLabels(Labels constLabels) voidCounter.incWithExemplar(double amount, Labels labels) voidCounter.incWithExemplar(long amount, Labels labels) voidGauge.incWithExemplar(double amount, Labels labels) voidHistogram.DataPoint.observeWithExemplar(double value, Labels labels) voidHistogram.observeWithExemplar(double amount, Labels labels) voidSummary.DataPoint.observeWithExemplar(double value, Labels labels) voidSummary.observeWithExemplar(double amount, Labels labels) voidGauge.setWithExemplar(double value, Labels labels) -
Uses of Labels in io.prometheus.metrics.instrumentation.dropwizard5.labels
Methods in io.prometheus.metrics.instrumentation.dropwizard5.labels that return Labels -
Uses of Labels in io.prometheus.metrics.model.snapshots
Classes in io.prometheus.metrics.model.snapshots that implement interfaces with type arguments of type LabelsModifier and TypeClassDescriptionfinal classImmutable set of name/value pairs, sorted by name.Fields in io.prometheus.metrics.model.snapshots declared as 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, 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, EscapingScheme scheme) static StringSnapshotEscaper.getSnapshotLabelName(Labels labels, int index, 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) 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.