Skip to content

Commit 711f706

Browse files
authored
Add network fields for topsql agent (#379)
Signed-off-by: yibin87 <[email protected]>
1 parent 85a019a commit 711f706

File tree

2 files changed

+130
-55
lines changed

2 files changed

+130
-55
lines changed

go-tipb/topsql_agent.pb.go

Lines changed: 128 additions & 55 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
@@ -42,6 +42,8 @@ message TopSQLRecordItem {
4242
map<string, uint64> stmt_kv_exec_count = 4; // target => count
4343
uint64 stmt_duration_sum_ns = 5;
4444
uint64 stmt_duration_count = 6;
45+
uint64 stmt_network_in_bytes = 7; // traffic from client
46+
uint64 stmt_network_out_bytes = 8; // traffic to client
4547
}
4648

4749
message SQLMeta {

0 commit comments

Comments
 (0)