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>
This commit is contained in:
Chia-Ping Tsai 2020-02-25 03:32:15 +08:00 committed by GitHub
parent 1de9981fe3
commit 384eb16805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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",