Github user casidiablo commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5182#discussion_r158194237
  
    --- Diff: 
flink-connectors/flink-connector-kinesis/src/main/java/org/apache/flink/streaming/connectors/kinesis/internals/ShardConsumer.java
 ---
    @@ -96,6 +99,15 @@ protected ShardConsumer(KinesisDataFetcher<T> fetcherRef,
                                                        SequenceNumber 
lastSequenceNum,
                                                        KinesisProxyInterface 
kinesis) {
                this.fetcherRef = checkNotNull(fetcherRef);
    +           MetricGroup kinesisMetricGroup = fetcherRef.getRuntimeContext()
    --- End diff --
    
    I think we can't register the metric in `FlinkKinesisConsumer`, since we 
need it to be associated with a particular shard id. But I could do it from the 
`KinesisDataFetcher` instead, which already has access to the runtime context.


---

Reply via email to