Skip to content

Commit 19bc75a

Browse files
authoredAug 28, 2024
Revise TSO related Grafana monitoring metrics description (pingcap#18722)
1 parent 5237e1b commit 19bc75a

4 files changed

+16
-16
lines changed
 

‎dashboard/dashboard-monitoring.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ Number of queries using plan cache per second in all TiDB instances
6969
### KV/TSO Request OPS
7070

7171
- kv request total: Total number of KV requests per second in all TiDB instances
72-
- kv request by type: Number of KV requests per second in all TiDB instances based on such types as `Get`, `Prewrite`, and `Commit`.
73-
- tso - cmd: Number of `tso cmd` requests per second in all TiDB instances
74-
- tso - request: Number of `tso request` requests per second in all TiDB instances
72+
- kv request by type: Number of KV requests per second in all TiDB instances based on such types as `Get`, `Prewrite`, and `Commit`
73+
- tso - cmd: Number of gRPC requests per second that TiDB sends to PD in all TiDB instances; each gRPC request contains a batch of TSO requests
74+
- tso - request: Number of TSO requests per second in all TiDB instances
7575

76-
Generally, dividing `tso - cmd` by `tso - request` yields the average batch size of requests per second.
76+
Generally, `tso - request` divided by `tso - cmd` is the average size of TSO request batches per second.
7777

7878
### Connection Count
7979

‎grafana-overview-dashboard.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To understand the key metrics displayed on the Overview dashboard, check the fol
4242
| TiDB | Transaction Duration | The execution time of a transaction |
4343
| TiDB | KV Cmd OPS | The number of executed KV commands. |
4444
| TiDB | KV Cmd Duration 99 | The execution time of the KV command. |
45-
| TiDB | PD TSO OPS | The number of TSO that TiDB obtains from PD per second. |
45+
| TiDB | PD TSO OPS | The number of gRPC requests per second that TiDB sends to PD (cmd) and the number of TSO requests (request); each gRPC request contains a batch of TSO requests. |
4646
| TiDB | PD TSO Wait Duration | The duration that TiDB waits for PD to return TSO. |
4747
| TiDB | TiClient Region Error OPS | The number of Region related errors returned by TiKV. |
4848
| TiDB | Lock Resolve OPS | The number of TiDB operations that resolve locks. When TiDB's read or write request encounters a lock, it tries to resolve the lock. |

‎grafana-performance-overview-dashboard.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ Number of commands processed by all TiDB instances per second based on type
6767
### KV/TSO Request OPS
6868

6969
- kv request total: Total number of KV requests per second in all TiDB instances
70-
- kv request by type: Number of KV requests per second in all TiDB instances based on such types as `Get`, `Prewrite`, and `Commit`.
71-
- tso - cmd: Number of `tso cmd` requests per second in all TiDB instances
72-
- tso - request: Number of `tso request` requests per second in all TiDB instances
70+
- kv request by type: Number of KV requests per second in all TiDB instances based on such types as `Get`, `Prewrite`, and `Commit`
71+
- tso - cmd: Number of gRPC requests per second that TiDB sends to PD in all TiDB instances; each gRPC request contains a batch of TSO requests
72+
- tso - request: Number of TSO requests per second in all TiDB instances
7373

74-
Generally, dividing `tso - cmd` by `tso - request` yields the average batch size of requests per second.
74+
Generally, `tso - request` divided by `tso - cmd` is the average size of TSO request batches per second.
7575

7676
### KV Request Time By Source
7777

@@ -138,10 +138,10 @@ Average time consumed in executing gRPC requests in all TiKV instances based on
138138

139139
### PD TSO Wait/RPC Duration
140140

141-
- wait - avg: Average time in waiting for PD to return TSO in all TiDB instances
142-
- rpc - avg: Average time from sending TSO requests to PD to receiving TSO in all TiDB instances
143-
- wait - 99: P99 time in waiting for PD to return TSO in all TiDB instances
144-
- rpc - 99: P99 time from sending TSO requests to PD to receiving TSO in all TiDB instances
141+
- wait - avg: Average duration of waiting for PD to return TSO in all TiDB instances
142+
- rpc - avg: Average duration from the time that TiDB sends gRPC requests to PD to get TSO to the time that TiDB receives TSO in all TiDB instances
143+
- wait - 99: P99 duration of waiting for PD to return TSO in all TiDB instances
144+
- rpc - 99: P99 duration from the time that TiDB sends gRPC requests to PD to get TSO to the time that TiDB receives TSO in all TiDB instances
145145

146146
### Storage Async Write Duration, Store Duration, and Apply Duration
147147

‎grafana-tidb-dashboard.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ The following metrics relate to requests sent to TiKV. Retry requests are counte
133133
- PD Client CMD OPS: the statistics of commands executed by PD Client per second
134134
- PD Client CMD Duration: the time it takes for PD Client to execute commands
135135
- PD Client CMD Fail OPS: the statistics of failed commands executed by PD Client per second
136-
- PD TSO OPS: the number of TSO that TiDB obtains from PD per second
136+
- PD TSO OPS: the number of gRPC requests per second that TiDB sends to PD (cmd) and the number of TSO requests (request); each gRPC request contains a batch of TSO requests
137137
- PD TSO Wait Duration: the time that TiDB waits for PD to return TSO
138-
- PD TSO RPC duration: the duration from the time that TiDB sends request to PD (to get TSO) to the time that TiDB receives TSO
139-
- Start TSO Wait Duration: the duration from the time that TiDB sends request to PD (to get `start TSO`) to the time that TiDB receives `start TSO`
138+
- PD TSO RPC duration: the duration from the time that TiDB sends gRPC requests to PD to get TSO to the time that TiDB receives the gRPC response from PD
139+
- Async TSO Duration: the duration from the time that TiDB prepares to get TSO to the time that TiDB actually starts to wait for PD to return TSO
140140

141141
### Schema Load
142142

0 commit comments

Comments
 (0)
Please sign in to comment.