Skip to content

Commit dcc1a04

Browse files
committed
Add network fields for topsql agent (#379)
Signed-off-by: yibin87 <huyibin@pingcap.com> (cherry picked from commit 711f706)
1 parent 0607513 commit dcc1a04

2 files changed

Lines changed: 78 additions & 6 deletions

File tree

go-tipb/topsql_agent.pb.go

Lines changed: 76 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/topsql_agent.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ message TopSQLRecordItem {
3636
map<string, uint64> stmt_kv_exec_count = 4; // target => count
3737
uint64 stmt_duration_sum_ns = 5;
3838
uint64 stmt_duration_count = 6;
39+
uint64 stmt_network_in_bytes = 7; // traffic from client
40+
uint64 stmt_network_out_bytes = 8; // traffic to client
3941
}
4042

4143
message SQLMeta {

0 commit comments

Comments
 (0)