Module io.prometheus.metrics.model
Class SnapshotEscaper
java.lang.Object
io.prometheus.metrics.model.snapshots.SnapshotEscaper
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExemplarescapeExemplar(Exemplar exemplar, io.prometheus.metrics.config.EscapingScheme scheme) static ExemplarsescapeExemplars(Exemplars exemplars, io.prometheus.metrics.config.EscapingScheme scheme) static LabelsescapeLabels(Labels labels, io.prometheus.metrics.config.EscapingScheme scheme) static MetricSnapshotescapeMetricSnapshot(MetricSnapshot v, io.prometheus.metrics.config.EscapingScheme scheme) Escapes the given metric names and labels with the given escaping scheme.static StringgetMetadataName(MetricMetadata metadata, io.prometheus.metrics.config.EscapingScheme scheme) static StringgetSnapshotLabelName(Labels labels, int index, io.prometheus.metrics.config.EscapingScheme scheme)
-
Method Details
-
escapeMetricSnapshot
public static MetricSnapshot escapeMetricSnapshot(MetricSnapshot v, io.prometheus.metrics.config.EscapingScheme scheme) Escapes the given metric names and labels with the given escaping scheme. -
getSnapshotLabelName
-
getMetadataName
public static String getMetadataName(MetricMetadata metadata, io.prometheus.metrics.config.EscapingScheme scheme) -
escapeLabels
-
escapeExemplars
-
escapeExemplar
-