-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[METRICS] Append worker metrics #1504
[METRICS] Append worker metrics #1504
Conversation
|
||
import org.astraea.common.metrics.HasBeanObject; | ||
|
||
public interface HasAdminMetrics extends HasBeanObject { | ||
@FunctionalInterface | ||
public interface HasSelectorMetrics extends HasBeanObject { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這個設計不錯,不過可否加上註解說明一下是對應 kafka 底層的 selector,那個元件並不是公開的元件,稍微說明一下以免誤會
default String clientId() { | ||
return beanObject().properties().get("client-id"); | ||
} | ||
public interface HasConsumerCoordinatorMetrics extends HasCoordinatorMetrics { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
這個設計也很好,可以考慮把@FunctionalInterface
都加上去,可以預防我們不小心改錯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chaohengstudent 這次patch做得很好,超出我預期,幾個小細節修正就可以合併了
@chaohengstudent 感謝這次的patch,做得很好。後續我們要將其新增到 https://github.com/skiptests/astraea/blob/main/gui/src/main/java/org/astraea/gui/tab/ConnectorNode.java 可否協助完成?這樣使用者可以透過GUI更方便的觀察 worker 運行狀況 |
fix #1496
新增 "kafka.connect" metrics
app-info
connect-coordinator-metrics
connect-metrics
connect-node-metrics
connect-worker-metrics
connect-worker-rebalance-metrics
connector-metrics
rename file
ConnectorInfo
toConnectorTaskInfo
(connector-task-metrics) 因為將新增的 connector-metrics 命名為前者新增
HasCoordinatorMetrics
-> 將 consumer 及 connector 的 coordinator 合併共同 metrics新增
HasSelectorMetrics
-> admin, consumer, producer, connector -metrics 合併共同 metrics新增測試
ConnectorMetricsTest