github-actions[bot] commented on code in PR #18115:
URL: https://github.com/apache/doris/pull/18115#discussion_r1158717153


##########
be/src/http/action/metrics_action.cpp:
##########
@@ -42,7 +43,11 @@ void MetricsAction::handle(HttpRequest* req) {
     } else if (type == "json") {
         str = _metric_registry->to_json(with_tablet == "true");
     } else {
-        str = _metric_registry->to_prometheus(with_tablet == "true");
+        if (config::enable_bvar_metrics) {

Review Comment:
   warning: no member named 'enable_bvar_metrics' in namespace 'doris::config'; 
did you mean 'enable_system_metrics'? [clang-diagnostic-error]
   
   ```suggestion
           if (config::enable_system_metrics) {
   ```
   **be/src/common/config.h:477:** 'enable_system_metrics' declared here
   ```cpp
   CONF_Bool(enable_system_metrics, "true");
             ^
   ```
   



-- 
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