public class SamzaMetricOpFactory
extends java.lang.Object
Op for default transform metric computation.
Each metric Op computes and emits default throughput, latency & watermark progress metric per transform for Beam Samza Runner. A metric Op can be either attached to Input PCollection or Output PCollection of a PTransform.
Each concrete metric OP is responsible for following metrics computation: 1. Throughput: Emit the number of elements processed in the PCollection 2. Watermark Progress: Emit the output watermark progress of the PCollection 3. Latency: Maintain the avg arrival time per watermark across elements it processes, compute & emit the latency
| Modifier and Type | Class and Description |
|---|---|
static class |
SamzaMetricOpFactory.OpType |
| Constructor and Description |
|---|
SamzaMetricOpFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T> @NonNull Op<T,T,java.lang.Void> |
createMetricOp(@NonNull java.lang.String urn,
@NonNull java.lang.String pValue,
@NonNull java.lang.String transformName,
@NonNull SamzaMetricOpFactory.OpType opType,
@NonNull SamzaTransformMetricRegistry samzaTransformMetricRegistry)
Create a
Op for default transform metric computation. |
public static <T> @NonNull Op<T,T,java.lang.Void> createMetricOp(@NonNull java.lang.String urn, @NonNull java.lang.String pValue, @NonNull java.lang.String transformName, @NonNull SamzaMetricOpFactory.OpType opType, @NonNull SamzaTransformMetricRegistry samzaTransformMetricRegistry)
Op for default transform metric computation.T - type of the messageurn - URN of the PCollection metric Op is processingpValue - name of the PCollection metric Op is processingtransformName - name of the PTransform for which metric Op is createdopType - type of the metricsamzaTransformMetricRegistry - metric registryOp for default transform metric computation