Browse Source

KAFKA-9599 create unique sensor to record group rebalance (#8159)

The "offset deletion" and "group rebalance" should not be recorded by the same sensor since they are totally different.

The code is introduced by #7276.

Reviewers: David Jacot <djacot@confluent.io>, Guozhang Wang <wangguoz@gmail.com>
pull/8163/head
Chia-Ping Tsai 5 years ago committed by GitHub
parent
commit
384eb16805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/src/main/scala/kafka/coordinator/group/GroupCoordinator.scala

2
core/src/main/scala/kafka/coordinator/group/GroupCoordinator.scala

@ -74,7 +74,7 @@ class GroupCoordinator(val brokerId: Int, @@ -74,7 +74,7 @@ class GroupCoordinator(val brokerId: Int,
"group-coordinator-metrics",
"The total number of administrative deleted offsets")))
val groupCompletedRebalanceSensor = metrics.sensor("OffsetDeletions")
val groupCompletedRebalanceSensor = metrics.sensor("CompletedRebalances")
groupCompletedRebalanceSensor.add(new Meter(
metrics.metricName("group-completed-rebalance-rate",

Loading…
Cancel
Save