Skip to content

Commit

Permalink
fix(metrics): topic partition count metrics should be reported by all…
Browse files Browse the repository at this point in the history
… brokers

Signed-off-by: Shichao Nie <[email protected]>
  • Loading branch information
SCNieh committed Aug 14, 2024
1 parent 9e1fecf commit 7819b43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private static void initAutoBalancerMetrics(Meter meter, String prefix) {
.setDescription("The number of partitions for each topic on each broker")
.ofLongs()
.buildWithCallback(result -> {
if (MetricsLevel.INFO.isWithin(metricsConfig.getMetricsLevel()) && isActiveSupplier.get()) {
if (MetricsLevel.INFO.isWithin(metricsConfig.getMetricsLevel())) {
PartitionCountDistribution partitionCountDistribution = topicPartitionCountSupplier.get();
if (partitionCountDistribution == null) {
return;
Expand Down

0 comments on commit 7819b43

Please sign in to comment.