-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Brokers API improvements: 1. broker io rates stats added 2. active controller property set to node id 3. minor refactoring 4. FE: Add an indicator for an active broker controller Co-authored-by: Mgrdich <[email protected]> Co-authored-by: iliax <[email protected]> Co-authored-by: Hrant Abrahamyan <[email protected]> Co-authored-by: Mgrdich <[email protected]>
- Loading branch information
1 parent
7837622
commit f9906b5
Showing
17 changed files
with
256 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
kafka-ui-api/src/main/java/com/provectus/kafka/ui/model/InternalBroker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.provectus.kafka.ui.model; | ||
|
||
import java.math.BigDecimal; | ||
import lombok.Data; | ||
import org.apache.kafka.common.Node; | ||
|
||
@Data | ||
public class InternalBroker { | ||
|
||
private final Integer id; | ||
private final String host; | ||
private final Integer port; | ||
private final BigDecimal bytesInPerSec; | ||
private final BigDecimal bytesOutPerSec; | ||
|
||
public InternalBroker(Node node, Statistics statistics) { | ||
this.id = node.id(); | ||
this.host = node.host(); | ||
this.port = node.port(); | ||
this.bytesInPerSec = statistics.getMetrics().getBrokerBytesInPerSec().get(node.id()); | ||
this.bytesOutPerSec = statistics.getMetrics().getBrokerBytesOutPerSec().get(node.id()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.