public class KafkaSinkMetrics
extends java.lang.Object
Metrics will be in the namespace 'KafkaSink' and have their name formatted as:
'{baseName}-{metricLabelKey1}:{metricLabelVal1};...{metricLabelKeyN}:{metricLabelValN};' ????
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
METRICS_NAMESPACE |
Constructor and Description |
---|
KafkaSinkMetrics() |
Modifier and Type | Method and Description |
---|---|
static Histogram |
createRPCLatencyHistogram(org.apache.beam.sdk.io.kafka.KafkaSinkMetrics.RpcMethod method,
java.lang.String topic)
Creates an Histogram metric to record RPC latency.
|
static void |
setSupportKafkaMetrics(boolean supportKafkaMetrics) |
public static final java.lang.String METRICS_NAMESPACE
public static Histogram createRPCLatencyHistogram(org.apache.beam.sdk.io.kafka.KafkaSinkMetrics.RpcMethod method, java.lang.String topic)
'RpcLatency*rpc_method:{method};topic_name:{topic};'
method
- Kafka method associated with this metric.topic
- Kafka topic associated with this metric.public static void setSupportKafkaMetrics(boolean supportKafkaMetrics)