Class SourceMetrics

java.lang.Object
org.apache.beam.sdk.metrics.SourceMetrics

public class SourceMetrics extends Object
Standard Source Metrics.
  • Constructor Details

    • SourceMetrics

      public SourceMetrics()
  • Method Details

    • elementsRead

      public static Counter elementsRead()
      Counter of elements read by a source.
    • elementsReadBySplit

      public static Counter elementsReadBySplit(String splitId)
      Counter of elements read by a source split.

      Should only be used when there is a small, fixed set of split IDs so as not to overload metrics backends.

    • bytesRead

      public static Counter bytesRead()
      Counter of bytes read by a source.
    • bytesReadBySplit

      public static Counter bytesReadBySplit(String splitId)
      Counter of bytes read by a source split.

      Should only be used when there is a small, fixed set of split IDs so as not to overload metrics backends.

    • backlogBytes

      public static Gauge backlogBytes()
      Gauge for source backlog in bytes.
    • backlogBytesOfSplit

      public static Gauge backlogBytesOfSplit(String splitId)
      Gauge for source split backlog in bytes.

      Should only be used when there is a small, fixed set of split IDs so as not to overload metrics backends.

    • backlogElements

      public static Gauge backlogElements()
      Gauge for source backlog in elements.
    • backlogElementsOfSplit

      public static Gauge backlogElementsOfSplit(String splitId)
      Gauge for source split backlog in elements.

      Should only be used when there is a small, fixed set of split IDs so as not to overload metrics backends.