Uses of Class
io.prometheus.metrics.model.snapshots.Labels
Package
Description
-
Uses of Labels in io.prometheus.metrics.core.datapoints
Modifier and TypeMethodDescriptiondefault void
GaugeDataPoint.decWithExemplar
(double amount, Labels labels) Subtractamount
, and create a custom exemplar with the given labels.default void
GaugeDataPoint.decWithExemplar
(Labels labels) Subtract one, and create a custom exemplar with the given labels.void
CounterDataPoint.incWithExemplar
(double amount, Labels labels) Addamount
, and create a custom exemplar with the given labels.default void
CounterDataPoint.incWithExemplar
(long amount, Labels labels) Addamount
, and create a custom exemplar with the given labels.default void
CounterDataPoint.incWithExemplar
(Labels labels) Add one, and create a custom exemplar with the given labels.void
GaugeDataPoint.incWithExemplar
(double amount, Labels labels) Addamount
, and create a custom exemplar with the given labels.default void
GaugeDataPoint.incWithExemplar
(Labels labels) Add one, and create a custom exemplar with the given labels.void
DistributionDataPoint.observeWithExemplar
(double value, Labels labels) Observevalue
, and create a custom exemplar with the given labels.void
GaugeDataPoint.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
Modifier and TypeMethodDescriptionvoid
ExemplarSampler.observeWithExemplar
(double value, Labels labels) -
Uses of Labels in io.prometheus.metrics.core.metrics
Modifier and TypeMethodDescriptionMetricWithFixedMetadata.Builder.constLabels
(Labels constLabels) void
Counter.incWithExemplar
(double amount, Labels labels) void
Counter.incWithExemplar
(long amount, Labels labels) void
Gauge.incWithExemplar
(double amount, Labels labels) void
Histogram.DataPoint.observeWithExemplar
(double value, Labels labels) void
Histogram.observeWithExemplar
(double amount, Labels labels) void
Summary.DataPoint.observeWithExemplar
(double value, Labels labels) void
Summary.observeWithExemplar
(double amount, Labels labels) void
Gauge.setWithExemplar
(double value, Labels labels) -
Uses of Labels in io.prometheus.metrics.instrumentation.dropwizard5.labels
-
Uses of Labels in io.prometheus.metrics.model.snapshots
Modifier and TypeMethodDescriptionCreate a new Labels instance containing the labels of this and the label passed as name and value.Labels.Builder.build()
DataPointSnapshot.getLabels()
DuplicateLabelsException.getLabels()
Exemplar.getLabels()
In most cases labels will containExemplar.TRACE_ID
andExemplar.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 Labels
Create a new Labels instance.static Labels
Create a new Labels instance.static Labels
Create a new Labels instance.Modifier and TypeMethodDescriptionint
boolean
Labels.hasSameNames
(Labels other) boolean
Labels.hasSameValues
(Labels other) Create a new Labels instance containing the labels of this and the labels of other.ModifierConstructorDescriptionCounterDataPointSnapshot
(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.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.