public StringBuilder adminEnableMetricsStats(HttpServletRequest req,
            StringBuilder sBuffer,
            ProcessResult result) {
        if (!WebParameterUtils.getStringParamValue(req,
                WebFieldDef.STATSTYPE, true, null, sBuffer, result)) {
            WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg());
            return sBuffer;
        }
        String statsType = (String) result.getRetData();
        return innEnableOrDisableMetricsStats(true, statsType, req, sBuffer, result);
    }
Enable Master's statistics functions.

@param req       Http Servlet Request
@param sBuffer   string buffer
@param result    process result
@return          metric information
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/handler/WebOtherInfoHandler.java