Skip to content

Commit

Permalink
dashboard: update grafana-overview-dashboard.md (#3347)
Browse files Browse the repository at this point in the history
* Update grafana-overview-dashboard.md

* update format

* Apply suggestions from code review

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
toutdesuite and TomShawn authored Jul 22, 2020
1 parent 64cf1a5 commit db91996
Showing 1 changed file with 51 additions and 54 deletions.
105 changes: 51 additions & 54 deletions grafana-overview-dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aliases: ['/docs/dev/grafana-overview-dashboard/','/docs/dev/reference/key-monit

# Key Metrics

If you use TiDB Ansible to deploy the TiDB cluster, the monitoring system is deployed at the same time. For more information, see [TiDB Monitoring Framework Overview](/tidb-monitoring-framework.md).
If you use TiDB Ansible or TiUP to deploy the TiDB cluster, the monitoring system (Prometheus & Grafana) is deployed at the same time. For more information, see [TiDB Monitoring Framework Overview](/tidb-monitoring-framework.md).

The Grafana dashboard is divided into a series of sub dashboards which include Overview, PD, TiDB, TiKV, Node\_exporter, Disk Performance, and so on. A lot of metrics are there to help you diagnose.

Expand All @@ -18,59 +18,56 @@ To understand the key metrics displayed on the Overview dashboard, check the fol

Service | Panel Name | Description | Normal Range
---- | ---------------- | ---------------------------------- | --------------
Services Port Status | Services Online | the online nodes number of each service |
Services Port Status | Services Offline | the offline nodes number of each service |
PD | Storage Capacity | the total storage capacity of the TiDB cluster |
PD | Current Storage Size | the occupied storage capacity of the TiDB cluster |
PD | Number of Regions | the total number of Regions of the current cluster |
PD | Leader Balance Ratio | the leader ratio difference of the nodes with the biggest leader ratio and the smallest leader ratio | It is less than 5% for a balanced situation and becomes bigger when you restart a node.
PD | Region Balance Ratio | the Region ratio difference of the nodes with the biggest Region ratio and the smallest Region ratio | It is less than 5% for a balanced situation and becomes bigger when you add or remove a node.
PD | Store Status -- Up Stores | the number of TiKV nodes that are up |
PD | Store Status -- Disconnect Stores | the number of TiKV nodes that encounter abnormal communication within a short time |
PD | Store Status -- LowSpace Stores | the number of TiKV nodes with an available space of less than 20% |
PD | Store Status -- Down Stores | the number of TiKV nodes that are down | The normal value is `0`. If the number is bigger than `0`, it means some node(s) are abnormal.
PD | Store Status -- Offline Stores | the number of TiKV nodes (still providing service) that are being made offline |
PD | Store Status -- Tombstone Stores | the number of TiKV nodes that are successfully offline |
PD | 99% completed_cmds_duration_seconds | the 99th percentile duration to complete a pd-server request | less than 5ms
PD | handle_requests_duration_seconds | the request duration of a PD request |
TiDB | Statement OPS | the total number of executed SQL statements, including `SELECT`, `INSERT`, `UPDATE` and so on |
TiDB | Duration | the execution time of a SQL statement |
TiDB | QPS By Instance | the QPS on each TiDB instance |
TiDB | Failed Query OPM | the number of failed SQL statements, including syntax error and key conflicts and so on |
TiDB | Connection Count | the connection number of each TiDB instance |
TiDB | Heap Memory Usage | the size of heap memory used by each TiDB instance |
TiDB | Transaction OPS | the number of executed transactions per second |
TiDB | Transaction Duration | the execution time of a transaction |
TiDB | KV Cmd OPS | the number of executed KV commands |
TiDB | KV Cmd Duration 99 | the execution time of the KV command |
TiDB | PD TSO OPS | the number of TSO that TiDB obtains from PD |
TiDB | PD TSO Wait Duration | the time consumed when TiDB obtains TSO from PD |
TiDB | TiClient Region Error OPS | the number of Region related errors returned by TiKV |
TiDB | Lock Resolve OPS | the number of transaction related conflicts |
TiDB | Load Schema Duration | the time consumed when TiDB obtains Schema from TiKV |
TiDB | KV Backoff OPS | the number of errors returned by TiKV (such as transaction conflicts )
TiKV | leader | the number of leaders on each TiKV node |
TiKV | region | the number of Regions on each TiKV node |
TiKV | CPU | the CPU usage ratio on each TiKV node |
TiKV | Memory | the memory usage on each TiKV node |
TiKV | store size | the data amount on each TiKV node |
TiKV | cf size | the data amount on different CFs in the cluster |
TiKV | channel full | `No data points` is displayed in normal conditions. If a monitoring value displays, it means the corresponding TiKV node fails to handle the messages |
TiKV | server report failures | `No data points` is displayed in normal conditions. If `Unreachable` is displayed, it means TiKV encounters a communication issue. |
TiKV | scheduler pending commands | the number of commits on queue | Occasional value peaks are normal.
TiKV | coprocessor pending requests | the number of requests on queue | `0` or very small
TiKV | coprocessor executor count | the number of various query operations |
TiKV | coprocessor request duration | the time consumed by TiKV queries |
TiKV | raft store CPU | the CPU usage ratio of the raftstore thread | The default number of threads is 2 (configured by `raftstore.store-pool-size`). A value of over 80% for a single thread indicates that the CPU usage ratio is very high.|
TiKV | Coprocessor CPU | the CPU usage ratio of the TiKV query thread, related to the application; complex queries consume a great deal of CPU |
System Info | Vcores | the number of CPU cores |
System Info | Memory | the total memory |
System Info | CPU Usage | the CPU usage ratio, 100% at a maximum |
System Info | Load [1m] | the overload within 1 minute |
System Info | Memory Available | the size of the available memory |
System Info | Network Traffic | the statistics of the network traffic |
System Info | TCP Retrans | the statistics about network monitoring and TCP |
System Info | IO Util | the disk usage ratio, 100% at a maximum; generally you need to consider adding a new node when the usage ratio is up to 80% ~ 90% |
Services Port Status | Services Up | The online nodes number of each service. |
PD | PD role | The role of the current PD. |
PD | Storage capacity | The total storage capacity of the TiDB cluster. |
PD | Current storage size | The occupied storage capacity of the TiDB cluster, including the space occupied by TiKV replicas. |
PD | Normal stores | The number of nodes in the normal state. |
PD | Abnormal stores | The number of nodes in the abnormal state. | 0 |
PD | Number of Regions | The total number of Regions in the current cluster. Note that the number of Regions has nothing to do with the number of replicas. |
PD | 99% completed_cmds_duration_seconds | The 99th percentile duration to complete a pd-server request. | less than 5ms
PD | Handle\_requests\_duration\_seconds | The network duration of a PD request. |
PD | Region health | The state of each Region. | Generally, the number of pending peers is less than 100, and that of the missing peers cannot always be greater than `0`. |
PD | Hot write Region's leader distribution | The total number of leaders who are the write hotspots on each TiKV instance. |
PD | Hot read Region's leader distribution | The total number of leaders who are the read hotspots on each TiKV instance. |
PD | Region heartbeat report | The count of heartbeats reported to PD per instance. |
PD | 99% Region heartbeat latency | The heartbeat latency per TiKV instance (P99). |
TiDB | Statement OPS | The number of different types of SQL statements executed per second, which is counted according to `SELECT`, `INSERT`, `UPDATE`, and other types of statements. |
TiDB | Duration | The execution time.<br/>1. The duration between the time that the client's network request is sent to TiDB and the time that the request is returned to the client after TiDB has executed the request. In general, client requests are sent in the form of SQL statements; however, this duration can include the execution time of commands such as `COM_PING`, `COM_SLEEP`, `COM_STMT_FETCH`, and `COM_SEND_LONG_DATA`.<br/>2. Because TiDB supports Multi-Query, TiDB supports sending multiple SQL statements at one time, such as `select 1; select 1; select 1;`. In this case, the total execution time of this query includes the execution time of all SQL statements. |
TiDB | QPS By Instance | The QPS on each TiDB instance, which is classified according to the success or failure of command execution results. |
TiDB | Failed Query OPM | The statistics of error types (such as syntax errors and primary key conflicts) based on the errors occurred when executing SQL statements per second on each TiDB instance. The module in which the error occurs and the error code are included. |
TiDB | Connection Count | The connection number of each TiDB instance. |
TiDB | Memory Usage | The memory usage statistics of each TiDB instance, which is divided into the memory occupied by processes and the memory applied by Golang on the heap. |
TiDB | Transaction OPS | The number of transactions executed per second. |
TiDB | Transaction Duration | The execution time of a transaction |
TiDB | KV Cmd OPS | The number of executed KV commands. |
TiDB | KV Cmd Duration 99 | The execution time of the KV command. |
TiDB | PD TSO OPS | The number of TSO that TiDB obtains from PD per second. |
TiDB | PD TSO Wait Duration | The duration that TiDB waits for PD to return TSO. |
TiDB | TiClient Region Error OPS | The number of Region related errors returned by TiKV. |
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. |
TiDB | KV Backoff OPS | The number of errors returned by TiKV. |
TiKV | leader | The number of leaders on each TiKV node. |
TiKV | region | The number of Regions on each TiKV node. |
TiKV | CPU | The CPU usage ratio on each TiKV node. |
TiKV | Memory | The memory usage on each TiKV node. |
TiKV | store size | The size of storage space used by each TiKV instance. |
TiKV | cf size | The size of each column family (CF for short). |
TiKV | channel full | The number of "channel full" errors on each TiKV instance. | 0 |
TiKV | server report failures | The number of error messages reported by each TiKV instance. | 0 |
TiKV | scheduler pending commands | The number of pending commands on each TiKV instance. |
TiKV | coprocessor executor count | The number of coprocessor operations received by TiKV per second. Each type of coprocessor is counted separately. |
TiKV | coprocessor request duration | The time consumed to process read requests of coprocessor. |
TiKV | raft store CPU | The CPU usage ratio of the raftstore thread | The default number of threads is 2 (configured by `raftstore.store-pool-size`). A value of over 80% for a single thread indicates that the CPU usage ratio is very high.|
TiKV | Coprocessor CPU | The CPU usage ratio of the coprocessor thread. |
System Info | Vcores | The number of CPU cores. |
System Info | Memory | The total memory. |
System Info | CPU Usage | The CPU usage ratio, 100% at a maximum. |
System Info | Load [1m] | The overload within 1 minute. |
System Info | Memory Available | The size of the available memory. |
System Info | Network Traffic | The statistics of the network traffic. |
System Info | TCP Retrans | The frequency of the TOC retransmission. |
System Info | IO Util | The disk usage ratio, 100% at a maximum; generally you need to consider adding a new node when the usage ratio is up to 80% ~ 90%. |

## Interface of the Overview dashboard

Expand Down

0 comments on commit db91996

Please sign in to comment.