mirror of https://github.com/apache/kafka.git
KAFKA-17749: Fix Throttler metrics name (#17430)
Reviewers: Josep Prat <josep.prat@aiven.io>
This commit is contained in:
parent
52017a83db
commit
dcd3bbe592
|
@ -62,7 +62,8 @@ public class Throttler {
|
|||
Time time) {
|
||||
this.desiredRatePerSec = desiredRatePerSec;
|
||||
this.checkIntervalNs = TimeUnit.MILLISECONDS.toNanos(checkIntervalMs);
|
||||
this.meter = new KafkaMetricsGroup(Throttler.class).newMeter(metricName, units, TimeUnit.SECONDS);
|
||||
// For compatibility - this metrics group was previously defined within a Scala class named `kafka.utils.Throttler`
|
||||
this.meter = new KafkaMetricsGroup("kafka.utils", "Throttler").newMeter(metricName, units, TimeUnit.SECONDS);
|
||||
this.time = time;
|
||||
this.periodStartNs = time.nanoseconds();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue