Skip to content

Kafka cluster changes#342

Open
spathlavath wants to merge 12 commits into
newrelic:masterfrom
spathlavath:kafka_cluster_changes
Open

Kafka cluster changes#342
spathlavath wants to merge 12 commits into
newrelic:masterfrom
spathlavath:kafka_cluster_changes

Conversation

@spathlavath

@spathlavath spathlavath commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

The cluster metrics are collected from the following MBeans:

  • kafka.controller:name=ActiveBrokerCount,type=KafkaController - The total number of brokers currently active in the cluster.
  • kafka.controller:name=OfflinePartitionsCount,type=KafkaController - The total number of partitions across the cluster that do not have an active leader.
  • kafka.controller:name=PreferredReplicaImbalanceCount,type=KafkaController - A key health metric indicating how many partitions are not being led by their preferred replica, which can impact load distribution.
  • kafka.controller:name=GlobalTopicCount,type=KafkaController - The total number of topics in the cluster.
  • kafka.controller:name=GlobalPartitionCount,type=KafkaController - The total number of partitions across all topics in the cluster.
  • kafka.controller:name=ActiveControllerCount,type=KafkaController - Should be 1 in a healthy cluster, confirming a single active controller.
  • kafka.controller:name=FencedBrokerCount,type=KafkaController - The number of brokers considered inactive or "fenced" by the controller.
  • kafka.controller:name=UncleanLeaderElectionsPerSec,type=ControllerStats - A critical metric indicating potential data loss events across the cluster.
  • kafka.coordinator.group:name=NumGroups,type=GroupMetadataManager - The total number of consumer groups known to the coordinator.
  • kafka.coordinator.group:name=NumOffsets,type=GroupMetadataManager - The total number of offsets stored by the coordinator.
  • Metrics for group states like NumGroupsStable, NumGroupsPreparingRebalance, and NumGroupsDead.
  • kafka.server:name=ClusterId,type=KafkaServer - This provides the unique ID for the Kafka cluster, which would be an essential attribute for the KafkaClusterSample.

@spathlavath spathlavath requested a review from a team as a code owner August 7, 2025 06:32
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.

1 participant