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 that return LabelsMethods in io.prometheus.metrics.core.exemplars with parameters of type LabelsModifier and TypeMethodDescriptionprivate longExemplarSampler.doObserveSingleExemplar(double amount, Labels labels) private longExemplarSampler.doObserveWithExemplar(double amount, Labels labels) private longExemplarSampler.doObserveWithExemplarWithoutUpperBounds(double amount, Labels labels) private longExemplarSampler.doObserveWithExemplarWithUpperBounds(double value, Labels labels, double[] classicUpperBounds) voidExemplarSampler.observeWithExemplar(double value, Labels labels) private longExemplarSampler.updateCustomExemplar(int index, double value, Labels labels, long now) -
Uses of Labels in io.prometheus.metrics.core.metrics
Fields in io.prometheus.metrics.core.metrics declared as LabelsModifier and TypeFieldDescriptionprotected LabelsMetric.Builder.constLabelsprotected final LabelsMetric.constLabelsFields in io.prometheus.metrics.core.metrics with type parameters of type LabelsMethods in io.prometheus.metrics.core.metrics that return LabelsModifier and TypeMethodDescriptionprotected LabelsCallbackMetric.makeLabels(String... labelValues) Methods in io.prometheus.metrics.core.metrics with parameters of type LabelsModifier and TypeMethodDescriptionMetric.Builder.constLabels(Labels constLabels) MetricWithFixedMetadata.Builder.constLabels(Labels constLabels) voidCounter.DataPoint.incWithExemplar(double amount, Labels labels) voidCounter.DataPoint.incWithExemplar(long amount, Labels labels) voidCounter.incWithExemplar(double amount, Labels labels) voidCounter.incWithExemplar(long amount, Labels labels) voidGauge.DataPoint.incWithExemplar(double 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.DataPoint.setWithExemplar(double value, Labels labels) voidGauge.setWithExemplar(double value, Labels labels) Method parameters in io.prometheus.metrics.core.metrics with type arguments of type LabelsModifier and TypeMethodDescriptionprotected CounterSnapshotCounter.collect(List<Labels> labels, List<Counter.DataPoint> metricData) protected GaugeSnapshotGauge.collect(List<Labels> labels, List<Gauge.DataPoint> metricData) protected HistogramSnapshotHistogram.collect(List<Labels> labels, List<Histogram.DataPoint> metricData) protected abstract MetricSnapshotlabels and metricData have the same size.protected StateSetSnapshotStateSet.collect(List<Labels> labels, List<StateSet.DataPoint> metricDataList) protected SummarySnapshotSummary.collect(List<Labels> labels, List<Summary.DataPoint> metricData) -
Uses of Labels in io.prometheus.metrics.expositionformats
Methods in io.prometheus.metrics.expositionformats with parameters of type LabelsModifier and TypeMethodDescription(package private) static voidTextFormatUtil.writeLabels(Writer writer, Labels labels, String additionalLabelName, double additionalLabelValue, boolean metricInsideBraces, EscapingScheme scheme) private voidOpenMetrics2TextFormatWriter.writeNameAndLabels(Writer writer, String name, String suffix, Labels labels, EscapingScheme escapingScheme) private voidOpenMetrics2TextFormatWriter.writeNameAndLabels(Writer writer, String name, String suffix, Labels labels, EscapingScheme escapingScheme, String additionalLabelName, double additionalLabelValue) private voidOpenMetricsTextFormatWriter.writeNameAndLabels(Writer writer, String name, String suffix, Labels labels, EscapingScheme escapingScheme) private voidOpenMetricsTextFormatWriter.writeNameAndLabels(Writer writer, String name, String suffix, Labels labels, EscapingScheme escapingScheme, String additionalLabelName, double additionalLabelValue) private voidPrometheusTextFormatWriter.writeNameAndLabels(Writer writer, String name, String suffix, Labels labels, EscapingScheme escapingScheme) private voidPrometheusTextFormatWriter.writeNameAndLabels(Writer writer, String name, String suffix, Labels labels, EscapingScheme scheme, String additionalLabelName, double additionalLabelValue) -
Uses of Labels in io.prometheus.metrics.instrumentation.jvm
Fields in io.prometheus.metrics.instrumentation.jvm declared as LabelsModifier and TypeFieldDescriptionprivate LabelsJvmBufferPoolMetrics.Builder.constLabelsprivate final LabelsJvmBufferPoolMetrics.constLabelsprivate LabelsJvmClassLoadingMetrics.Builder.constLabelsprivate final LabelsJvmClassLoadingMetrics.constLabelsprivate LabelsJvmCompilationMetrics.Builder.constLabelsprivate final LabelsJvmCompilationMetrics.constLabelsprivate LabelsJvmGarbageCollectorMetrics.Builder.constLabelsprivate final LabelsJvmGarbageCollectorMetrics.constLabelsprivate LabelsJvmMemoryMetrics.Builder.constLabelsprivate final LabelsJvmMemoryMetrics.constLabelsprivate LabelsJvmMemoryPoolAllocationMetrics.Builder.constLabelsprivate final LabelsJvmMemoryPoolAllocationMetrics.constLabelsprivate LabelsJvmMetrics.Builder.constLabelsprivate LabelsJvmNativeMemoryMetrics.Builder.constLabelsprivate final LabelsJvmNativeMemoryMetrics.constLabelsprivate LabelsJvmRuntimeInfoMetric.Builder.constLabelsprivate final LabelsJvmRuntimeInfoMetric.constLabelsprivate LabelsJvmThreadsMetrics.Builder.constLabelsprivate final LabelsJvmThreadsMetrics.constLabelsprivate LabelsProcessMetrics.Builder.constLabelsprivate final LabelsProcessMetrics.constLabelsMethods in io.prometheus.metrics.instrumentation.jvm with parameters of type LabelsModifier and TypeMethodDescriptionJvmBufferPoolMetrics.Builder.constLabels(Labels constLabels) JvmClassLoadingMetrics.Builder.constLabels(Labels constLabels) JvmCompilationMetrics.Builder.constLabels(Labels constLabels) JvmGarbageCollectorMetrics.Builder.constLabels(Labels constLabels) JvmMemoryMetrics.Builder.constLabels(Labels constLabels) JvmMemoryPoolAllocationMetrics.Builder.constLabels(Labels constLabels) JvmMetrics.Builder.constLabels(Labels constLabels) Set constant labels that will be applied to all JVM metrics registered by this builder.JvmNativeMemoryMetrics.Builder.constLabels(Labels constLabels) JvmRuntimeInfoMetric.Builder.constLabels(Labels constLabels) JvmThreadsMetrics.Builder.constLabels(Labels constLabels) ProcessMetrics.Builder.constLabels(Labels constLabels) Constructors in io.prometheus.metrics.instrumentation.jvm with parameters of type LabelsModifierConstructorDescriptionprivateJvmBufferPoolMetrics(List<BufferPoolMXBean> bufferPoolBeans, PrometheusProperties config, Labels constLabels) privateJvmClassLoadingMetrics(ClassLoadingMXBean classLoadingBean, PrometheusProperties config, Labels constLabels) privateJvmCompilationMetrics(CompilationMXBean compilationBean, PrometheusProperties config, Labels constLabels) privateJvmGarbageCollectorMetrics(List<GarbageCollectorMXBean> garbageCollectorBeans, PrometheusProperties config, Labels constLabels) privateJvmMemoryMetrics(List<MemoryPoolMXBean> poolBeans, MemoryMXBean memoryBean, PrometheusProperties config, Labels constLabels) privateJvmMemoryPoolAllocationMetrics(List<GarbageCollectorMXBean> garbageCollectorBeans, Labels constLabels) privateJvmNativeMemoryMetrics(PrometheusProperties config, JvmNativeMemoryMetrics.PlatformMBeanServerAdapter adapter, Labels constLabels) privateJvmRuntimeInfoMetric(String version, String vendor, String runtime, PrometheusProperties config, Labels constLabels) privateJvmThreadsMetrics(boolean isNativeImage, ThreadMXBean threadBean, PrometheusProperties config, Labels constLabels) privateProcessMetrics(OperatingSystemMXBean osBean, RuntimeMXBean runtimeBean, ProcessMetrics.Grepper grepper, PrometheusProperties config, Labels constLabels) -
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.labelsprivate final LabelsDataPointSnapshot.labelsprivate final LabelsDuplicateLabelsException.labelsprivate LabelsExemplar.Builder.labelsprivate final LabelsExemplar.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) private static booleanSnapshotEscaper.labelsNeedsEscaping(Labels labels, EscapingScheme scheme) 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.privateGaugeDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long scrapeTimestampMillis, boolean internal) 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.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.privateInfoDataPointSnapshot(Labels labels, long scrapeTimestampMillis, boolean internal) 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.privateStateSetDataPointSnapshot(String[] names, boolean[] values, Labels labels, long scrapeTimestampMillis, boolean internal) 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) 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.privateUnknownDataPointSnapshot(double value, Labels labels, Exemplar exemplar, long scrapeTimestampMillis, boolean internal)