origin https://github.com/skiptests/astraea/pull/1796#discussion_r1210854071 `MetricStore` 是我們用來獲取效能指標的物件,有使用於 web service, partitioner, assignor,而這三個元件在建立 `MetricStore` 物件的時候會有許多共通的程式碼 ([partitioner](https://github.com/skiptests/astraea/blob/a5561801187ffbafd8561aac3dc005f05d6d30c6/common/src/main/java/org/astraea/common/partitioner/StrictCostPartitioner.java#L149-L182), [web service](https://github.com/skiptests/astraea/blob/a5561801187ffbafd8561aac3dc005f05d6d30c6/app/src/main/java/org/astraea/app/web/WebService.java#L70-L94)),也許可以提出相同的部分,簡化程式碼。