Skip to content

feat: Include supervisorId in Kafka consumer metrics.#19525

Open
gianm wants to merge 2 commits into
apache:masterfrom
gianm:kafka-metric-supervisorid
Open

feat: Include supervisorId in Kafka consumer metrics.#19525
gianm wants to merge 2 commits into
apache:masterfrom
gianm:kafka-metric-supervisorid

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented May 27, 2026

This patch updates KafkaConsumerMonitor to accept the task's metric builder, which includes supervisorId as well as other dimensions from IndexTaskUtils.setTaskDimensions.

This patch updates KafkaConsumerMonitor to accept the task's
metric builder, which includes supervisorId as well as other dimensions
from IndexTaskUtils.setTaskDimensions.
sortingMapper,
spec.getIoConfig().getConfigOverrides(),
spec.getIoConfig().isMultiTopic()
spec.getIoConfig().isMultiTopic(),
Copy link
Copy Markdown
Member

@FrankChen021 FrankChen021 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity Findings
P0 0
P1 0
P2 2
P3 0
Total 2
Severity Findings
P0 0
P1 0
P2 2
P3 0
Total 2

Reviewed 7 of 7 changed files.


This is an automated review by Codex GPT-5.5

Findings that could not be attached inline:

  • extensions-core/kafka-indexing-service/src/main/java/org/apache/druid/indexing/kafka/KafkaRecordSupplier.java:92 - [P2] Keep the old KafkaRecordSupplier overloads. The public KafkaRecordSupplier constructors now require metricBuilderSupplier, removing the existing four-argument production constructor and two-argument test constructor signatures. Downstream code that creates a supplier without task metric dimensions will break at compile time or runtime despite null preserving the old behavior. Please retain overloads that delegate to the new constructors with a null supplier.

Copy link
Copy Markdown
Member

@FrankChen021 FrankChen021 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handled the follow-up on KafkaConsumerMonitor constructor compatibility. The author clarified this is effectively internal, so I do not think another inline reply is useful.

I also reviewed the incremental diff and the full prepared diff for new regressions. No new high-confidence findings.

Reviewed 7 of 7 changed files.


This is an automated review by Codex GPT-5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants