Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Status

Current state: DraftUnder Discussion

Discussion thread:   https://lists.apache.org/thread/z4o5093zqxmc18nzb74vyhvb1hb399v4

JIRA:

Jira
serverASF JIRA
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyKAFKA-18088

...

  1. How many partitions are currently paused? A high number of paused partitions may indicate backpressure issues, slow state restoration, or application-level processing bottlenecks.
  2. Which specific partitions are paused? Knowing which partitions are paused helps pinpoint which topics or partitions are experiencing issues.
  3. How long has a partition been paused? A partition that has been paused for an extended period may indicate a stuck consumer, an unrecoverable error in processing, or a state store restoration that is taking too long.

...

The metric will have the following tags:

  • client-id
Metric NameTypeRecording LevelDescription
paused-partitions-countGauge (Integer)INFOThe current number of partitions that have been paused by the user via `Consumer.pause()`.

consumer-fetch-manager-metrics

Each metric will have the following tags:

  • client-id
  • topic
  • partition
Metric NameTypeRecording LevelDescription
partition-pausedGauge (Integer)DEBUGWhether this partition is currently paused. Returns `1` if paused, `0` if not paused.
partition-paused-time-msGauge (Long)DEBUGThe time in milliseconds since this partition was paused. Returns `0` if the partition is not currently paused.

Proposed Changes

Track Pause Timestamp

...