yiguolei commented on code in PR #46200:
URL: https://github.com/apache/doris/pull/46200#discussion_r1900192536


##########
be/src/runtime/workload_group/workload_group_metrics.cpp:
##########
@@ -32,7 +34,7 @@ WorkloadGroupMetrics::~WorkloadGroupMetrics() {
 
 WorkloadGroupMetrics::WorkloadGroupMetrics(WorkloadGroup* wg) {
     _entity = DorisMetrics::instance()->metric_registry()->register_entity(
-            "workload_group." + wg->name(), {{"name", wg->name()}});
+            "workload_group." + std::to_string(wg->id()), {{"workload_group", 
wg->name()}});

Review Comment:
   这种使用id的话,展示metric的时候,我们显示的是什么?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to