Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-16524: Metrics for KIP-853 #18304

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

kevin-wu24
Copy link
Contributor

@kevin-wu24 kevin-wu24 commented Dec 23, 2024

This PR implements the following gauges in KafkaRaftMetrics, BrokerServerMetrics, and ControllerServerMetrics:

KafkaRaftMetrics:

  • number-of-voters: number of voters for a KRaft topic partition. All of the replicas will report this metric.
  • number-of-observers: number of observers being tracked by the KRaft topic partition leader.
  • uncommitted-voter-change: 1 if there is a voter change that has not been committed, 0 otherwise.

number-of-observers and uncommitted-voter-change will only be present on the active controller, since it does not make sense for other replicas to report these metrics. If number-of-offline-voters is implemented, it will also only be reported by the leader.

BrokerServerMetrics:

  • ignored-static-voters: 1 if reading the voter set from the log, 0 if the voter set comes from static configuration.

ControllerServerMetrics:

  • IgnoredStaticVoters: 1 if reading the voter set from the log, 0 if the voter set comes from static configuration.
  • IsObserver: 1 if the controller node is not a voter for the KRaft cluster metadata partition, 0 otherwise.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@github-actions github-actions bot added triage PRs from the community core Kafka Broker kraft labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Kafka Broker kraft triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant