apache/beam

[Feature Request]: Add metrics tracking for offset commit failures and retry attempts in KafkaCommitOffset

已关闭

#38,587 创建于 2026年5月21日

 (4 条评论) (0 个反应) (0 位负责人)Java (4,097 个派生)batch import
P3good first issueiojavanew feature

仓库指标

星标
 (7,313 个星标)
PR 合并指标
 (平均合并 6天) (30 天内合并 243 个 PR)

描述

What would you like to happen?

Currently in KafkaCommitOffset.CommitOffsetDoFn there is no visibility into how often offset commits are failing or how many retries are being attempted. If commits are silently failing in production you have no way to know without digging through logs. Adding Beam metrics here would make it easy to monitor commit health through existing monitoring dashboards. Proposed approach

Add a counter for total commit failures Add a counter for retry attempts Add a counter for commits that exhausted all retries Use Beam's built in Metrics.counter() so it works with any runner

Why this is useful If you're running a high throughput pipeline and offset commits are struggling, right now you'd have no idea until you see duplicate processing. This gives you an early warning signal.

Issue Priority

Priority: 3 (nice-to-have improvement)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Infrastructure
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Prism Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner

贡献者指南