# Duration Related

+ `Grafana` Monitoring TiDB —> Query Summary —> Duration


![left](./student-guide/diagram/09-TiDB-Duration-01-01.png)

------------------------------------------------------------
Duration-related

Query Summary - Duration: SQL response time, according to the percentile calculation method, you can edit the formula to adjust different quantiles such as 0.999/0.99/0.95/0.80, or you can edit the formula to calculate the average response time sum (rate ( tidb_server_handle_query_duration_seconds_sum [1m])) /sum (rate (tidb_server_handle_query_duration_seconds_count [1m]))   

Query Summary - 999 Duration/99 Duration/95 Duration/80 Duration, these four panels show the response time of different types of SQL 999/99/95/80 according to sql_type, different quantiles, can help you diagnose is select Slow queries or slow DML such as insert/update/delete, or commit commit slow

- Query Detail - Duration 80/95/99/999 By instance, these four panels show the response time of different tidb instances at different quantiles 999/99/95/80 according to the tidb instance, which can help you diagnose whether there are only certain tidb instances The response time is relatively high. In the case of load balancing, the reason for tikv is excluded in advance.
