java.lang.Object
io.prometheus.metrics.model.snapshots.SnapshotEscaper

public class SnapshotEscaper extends Object
  • 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

      public static String getSnapshotLabelName(Labels labels, int index, io.prometheus.metrics.config.EscapingScheme scheme)
    • getMetadataName

      public static String getMetadataName(MetricMetadata metadata, io.prometheus.metrics.config.EscapingScheme scheme)
    • escapeLabels

      public static Labels escapeLabels(Labels labels, io.prometheus.metrics.config.EscapingScheme scheme)
    • escapeExemplars

      public static Exemplars escapeExemplars(Exemplars exemplars, io.prometheus.metrics.config.EscapingScheme scheme)
    • escapeExemplar

      @Nullable public static Exemplar escapeExemplar(@Nullable Exemplar exemplar, io.prometheus.metrics.config.EscapingScheme scheme)