zhiqiang-hhhh commented on code in PR #43144: URL: https://github.com/apache/doris/pull/43144#discussion_r1893654587
########## be/src/util/threadpool.cpp: ########## @@ -32,10 +32,25 @@ #include "gutil/port.h" #include "gutil/strings/substitute.h" #include "util/debug/sanitizer_scopes.h" +#include "util/doris_metrics.h" +#include "util/metrics.h" #include "util/scoped_cleanup.h" +#include "util/stopwatch.hpp" #include "util/thread.h" namespace doris { + +// The name of these varialbs will be useds as metric name in prometheus. +DEFINE_GAUGE_METRIC_PROTOTYPE_2ARG(thread_pool_running_tasks, MetricUnit::NOUNIT); Review Comment: 在 label 里面区分 -- 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