|
1664 | 1664 | "formatType": "Time series", |
1665 | 1665 | "queryType": "SQL", |
1666 | 1666 | "refId": "A", |
1667 | | - "sql": "select _wstart as ts, sum(`count`) as `select_count` from $database.taos_sql_req where sql_type = 'select' and ('$username' = '' OR username in (${username:sqlstring})) and ('$sql_result' = '' OR result in (${sql_result:sqlstring})) and _ts > $from and _ts <= $to interval($interval) fill(null)" |
| 1667 | + "sql": "select _wstart as ts, sum(`count`)/($interval/1s) as `select_count` from $database.taos_sql_req where sql_type = 'select' and ('$username' = '' OR username in (${username:sqlstring})) and ('$sql_result' = '' OR result in (${sql_result:sqlstring})) and _ts > $from and _ts <= $to interval($interval) fill(null)" |
1668 | 1668 | } |
1669 | 1669 | ], |
1670 | 1670 | "timeFrom": null, |
|
1740 | 1740 | "formatType": "Time series", |
1741 | 1741 | "queryType": "SQL", |
1742 | 1742 | "refId": "A", |
1743 | | - "sql": "select _wstart as ts, sum(`count`) as `delete_count` from $database.taos_sql_req where sql_type = 'delete' and ('$username' = '' OR username in (${username:sqlstring})) and ('$sql_result' = '' OR result in (${sql_result:sqlstring})) and _ts > $from and _ts <= $to interval($interval) fill(null)" |
| 1743 | + "sql": "select _wstart as ts, sum(`count`)/($interval/1s) as `delete_count` from $database.taos_sql_req where sql_type = 'delete' and ('$username' = '' OR username in (${username:sqlstring})) and ('$sql_result' = '' OR result in (${sql_result:sqlstring})) and _ts > $from and _ts <= $to interval($interval) fill(null)" |
1744 | 1744 | } |
1745 | 1745 | ], |
1746 | 1746 | "timeFrom": null, |
|
1817 | 1817 | "hide": false, |
1818 | 1818 | "queryType": "SQL", |
1819 | 1819 | "refId": "A", |
1820 | | - "sql": "select _wstart as ts, sum(`count`) as `insert_count` from $database.taos_sql_req where sql_type = 'insert' and ('$username' = '' OR username in (${username:sqlstring})) and ('$sql_result' = '' OR result in (${sql_result:sqlstring})) and _ts > $from and _ts <= $to interval($interval) fill(null)" |
| 1820 | + "sql": "select _wstart as ts, sum(`count`)/($interval/1s) as `insert_count` from $database.taos_sql_req where sql_type = 'insert' and ('$username' = '' OR username in (${username:sqlstring})) and ('$sql_result' = '' OR result in (${sql_result:sqlstring})) and _ts > $from and _ts <= $to interval($interval) fill(null)" |
1821 | 1821 | } |
1822 | 1822 | ], |
1823 | 1823 | "timeFrom": null, |
|
1892 | 1892 | "hide": false, |
1893 | 1893 | "queryType": "SQL", |
1894 | 1894 | "refId": "A", |
1895 | | - "sql": "select _wstart as ts, sum(`count`) as `inserted_rows` from $database.taosd_sql_req where sql_type = 'inserted_rows' and ('$fqdn' = '' or dnode_ep in (${fqdn:sqlstring})) and ('$username' = '' OR username in (${username:sqlstring})) and ('$sql_result' = '' OR result in (${sql_result:sqlstring})) and _ts > $from and _ts <= $to interval($interval) fill(null)" |
| 1895 | + "sql": "select _wstart as ts, sum(`count`)/($interval/1s) as `inserted_rows` from $database.taosd_sql_req where sql_type = 'inserted_rows' and ('$fqdn' = '' or dnode_ep in (${fqdn:sqlstring})) and ('$username' = '' OR username in (${username:sqlstring})) and ('$sql_result' = '' OR result in (${sql_result:sqlstring})) and _ts > $from and _ts <= $to interval($interval) fill(null)" |
1896 | 1896 | } |
1897 | 1897 | ], |
1898 | 1898 | "timeFrom": null, |
|
1968 | 1968 | "formatType": "Time series", |
1969 | 1969 | "queryType": "SQL", |
1970 | 1970 | "refId": "A", |
1971 | | - "sql": "select _wstart as ts, sum(`count`) as `count` from $database.taos_slow_sql where ('$username' = '' OR username in (${username:sqlstring})) and ('$sql_result' = '' OR result in (${sql_result:sqlstring})) and ('$duration' = '' OR `duration` in (${duration:sqlstring})) and _ts > $from and _ts <= $to interval($interval) fill(VALUE, 0)" |
| 1971 | + "sql": "select _wstart as ts, sum(`count`)/($interval/1s) as `count` from $database.taos_slow_sql where ('$username' = '' OR username in (${username:sqlstring})) and ('$sql_result' = '' OR result in (${sql_result:sqlstring})) and ('$duration' = '' OR `duration` in (${duration:sqlstring})) and _ts > $from and _ts <= $to interval($interval) fill(VALUE, 0)" |
1972 | 1972 | } |
1973 | 1973 | ], |
1974 | 1974 | "timeFrom": null, |
|
0 commit comments