wangbo opened a new pull request, #30456:
URL: https://github.com/apache/doris/pull/30456

   ## Proposed changes
   
   1 Add Metrics ShuffleBytes/ShuffleRows in fe.audit.log and tvf 
active_queries;
   
   ```
   mysql [(none)]>desc function active_queries();
   +------------------------+--------+------+-------+---------+-------+
   | Field                  | Type   | Null | Key   | Default | Extra |
   +------------------------+--------+------+-------+---------+-------+
   | BeHost                 | TEXT   | No   | false | NULL    | NONE  |
   | BePort                 | BIGINT | No   | false | NULL    | NONE  |
   | QueryId                | TEXT   | No   | false | NULL    | NONE  |
   | StartTime              | TEXT   | No   | false | NULL    | NONE  |
   | QueryTimeMs            | BIGINT | No   | false | NULL    | NONE  |
   | WorkloadGroupId        | BIGINT | No   | false | NULL    | NONE  |
   | QueryCpuTimeMs         | BIGINT | No   | false | NULL    | NONE  |
   | ScanRows               | BIGINT | No   | false | NULL    | NONE  |
   | ScanBytes              | BIGINT | No   | false | NULL    | NONE  |
   | BePeakMemoryBytes      | BIGINT | No   | false | NULL    | NONE  |
   | CurrentUsedMemoryBytes | BIGINT | No   | false | NULL    | NONE  |
   | ShuffleSendBytes       | BIGINT | No   | false | NULL    | NONE  |
   | ShuffleSendRows        | BIGINT | No   | false | NULL    | NONE  |
   | Database               | TEXT   | No   | false | NULL    | NONE  |
   | FrontendInstance       | TEXT   | No   | false | NULL    | NONE  |
   | Sql                    | TEXT   | No   | false | NULL    | NONE  |
   +------------------------+--------+------+-------+---------+-------+
   16 rows in set (0.01 sec)
   ```
   
   
   ```
   mysql [(none)]>select 
QueryId,StartTime,QueryCpuTimeMs,ScanRows,ScanBytes,BePeakMemoryBytes,`Database`,FrontendInstance,ShuffleSendBytes,ShuffleSendRows
 from active_queries()\G;
   *************************** 1. row ***************************
             QueryId: 774cc4b1cce448c7-b4c841b7b9d08923
           StartTime: 2024-01-27 13:53:27
      QueryCpuTimeMs: 28117
            ScanRows: 61352378
           ScanBytes: 21630189568
   BePeakMemoryBytes: 1537534202
            Database: hits
    FrontendInstance: vm-10
    ShuffleSendBytes: 145682448
     ShuffleSendRows: 1175400
   1 row in set (0.01 sec)
   
   ERROR: 
   No query specified
   ```


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