opensource4you / astraea

釋放kafka的無限潛能
Apache License 2.0
125 stars 45 forks source link

[METRICS] Add mbean to metric store and metric fetcher #1794

Closed chinghongfang closed 1 year ago

chinghongfang commented 1 year ago

這隻 PR 在 MetricStoreMetricFetcher 紀錄 bean 收集的速率。

動機

在降低 metric 收集的資源消耗外,也應該要考慮收集 metric 的數量 (速率)。

在 metric 量多時, fetch 的時間可能遠大於 fetchBeanDelay,這時候 metric 收集速度將會有所不同。 在我的預期中,topic collector 應該要有較快的收集速度 + 較低資源消耗。目前較低的資源消耗已經有方法證實,我認為再來需要看看 metric 收集的速率,證實 "較低資源消耗 不是因為 收集較少資料"。