Skip to content

refactor(inkless:consolidation): rename and improve ConsolidationMetrics#621

Merged
viktorsomogyi merged 1 commit into
mainfrom
jeqo/fix-consolidation-metrics
May 29, 2026
Merged

refactor(inkless:consolidation): rename and improve ConsolidationMetrics#621
viktorsomogyi merged 1 commit into
mainfrom
jeqo/fix-consolidation-metrics

Conversation

@jeqo

@jeqo jeqo commented May 29, 2026

Copy link
Copy Markdown
Contributor

Rename metric names from dot-separated inkless.remote.consolidation.* to CamelCase Consolidation* aligned with other Kafka metrics. Add broker-level aggregate gauges (sum across partitions) for alerting.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Refactors Inkless consolidation metrics to align naming with other Kafka metrics and adds broker-level aggregate gauges to support alerting across partitions.

Changes:

  • Renamed consolidation gauge names from inkless.remote.consolidation.* to Consolidation*.
  • Added broker-level (unscoped) aggregate gauges that sum values across all registered partitions.
  • Updated fetcher thread and unit tests to use the new metric names and validate the aggregate behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
core/src/main/scala/io/aiven/inkless/consolidation/ConsolidationMetrics.scala Renames metric names, adds broker-level aggregate gauges, updates registration/unregistration logic.
core/src/main/scala/io/aiven/inkless/consolidation/ConsolidationFetcherThread.scala Switches from updateLag to updateTotalLag for the renamed metric.
core/src/test/scala/io/aiven/inkless/consolidation/ConsolidationFetcherThreadTest.scala Updates assertions for renamed metrics and adds coverage for broker-level aggregates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/src/main/scala/io/aiven/inkless/consolidation/ConsolidationMetrics.scala Outdated
@jeqo jeqo force-pushed the jeqo/fix-consolidation-metrics branch from 15c8e22 to c297b44 Compare May 29, 2026 11:15
@jeqo jeqo requested a review from Copilot May 29, 2026 11:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@jeqo jeqo marked this pull request as ready for review May 29, 2026 11:29
Rename metric names from dot-separated `inkless.remote.consolidation.*`
to CamelCase `Consolidation*` aligned with other Kafka metrics. Add
broker-level aggregate gauges (sum across partitions) for alerting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeqo jeqo force-pushed the jeqo/fix-consolidation-metrics branch from c297b44 to 383fdc5 Compare May 29, 2026 11:31
@jeqo jeqo changed the title refactor(inkless): rename and improve ConsolidationMetrics refactor(inkless:consolidation): rename and improve ConsolidationMetrics May 29, 2026
@jeqo jeqo requested a review from viktorsomogyi May 29, 2026 11:31
@viktorsomogyi viktorsomogyi merged commit 4cc1a9e into main May 29, 2026
4 checks passed
@viktorsomogyi viktorsomogyi deleted the jeqo/fix-consolidation-metrics branch May 29, 2026 11:56
giuseppelillo pushed a commit that referenced this pull request May 29, 2026
…ics (#621)

Rename metric names from dot-separated `inkless.remote.consolidation.*`
to CamelCase `Consolidation*` aligned with other Kafka metrics. Add
broker-level aggregate gauges (sum across partitions) for alerting.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
giuseppelillo pushed a commit that referenced this pull request May 29, 2026
…ics (#621)

Rename metric names from dot-separated `inkless.remote.consolidation.*`
to CamelCase `Consolidation*` aligned with other Kafka metrics. Add
broker-level aggregate gauges (sum across partitions) for alerting.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants