Skip to content

Commit 4dbe0fb

Browse files
committed
fix taosd requests bug
1 parent 709f69f commit 4dbe0fb

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [3.6.3] - 2024-11-05
6+
7+
### Bug Fixes
8+
9+
- fix TDinsight Request data issue.
10+
511
## [3.6.2] - 2024-10-29
612

713
### Features

dashboards/TDinsightV3-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ TDinsight v3.x 是使用 [TDengine 3.x] 监控数据库和 [Grafana] 对 TDengin
77
TDinsight v3.x 和 TDengine 的版本对应关系如下:
88
| TDinsight v3.x 版本 | TDengine 版本 |
99
| :-----------------: | :------------: |
10+
| 3.6.3 | 3.3.0.0 及以上 |
1011
| 3.6.2 | 3.3.0.0 及以上 |
1112
| 3.6.1 | 3.3.0.0 及以上 |
1213
| 3.6.0 | 3.3.0.0 及以上 |

dashboards/TDinsightV3.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@
16641664
"formatType": "Time series",
16651665
"queryType": "SQL",
16661666
"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)"
16681668
}
16691669
],
16701670
"timeFrom": null,
@@ -1740,7 +1740,7 @@
17401740
"formatType": "Time series",
17411741
"queryType": "SQL",
17421742
"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)"
17441744
}
17451745
],
17461746
"timeFrom": null,
@@ -1817,7 +1817,7 @@
18171817
"hide": false,
18181818
"queryType": "SQL",
18191819
"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)"
18211821
}
18221822
],
18231823
"timeFrom": null,
@@ -1892,7 +1892,7 @@
18921892
"hide": false,
18931893
"queryType": "SQL",
18941894
"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)"
18961896
}
18971897
],
18981898
"timeFrom": null,
@@ -1968,7 +1968,7 @@
19681968
"formatType": "Time series",
19691969
"queryType": "SQL",
19701970
"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)"
19721972
}
19731973
],
19741974
"timeFrom": null,

dashboards/TDinsightV3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ TDinsight v3.x is a solution for monitoring TDengine using the builtin native mo
77
## Compatiable with TDengine version
88
| TDengine grafana plugin version | TDengine version |
99
| :-----------------------------: | :--------------: |
10+
| 3.6.3 | 3.3.0.0 or later |
1011
| 3.6.2 | 3.3.0.0 or later |
1112
| 3.6.1 | 3.3.0.0 or later |
1213
| 3.6.0 | 3.3.0.0 or later |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tdengine-datasource",
3-
"version": "3.6.2",
3+
"version": "3.6.3",
44
"description": "Grafana datasource plugin for TDengine",
55
"scripts": {
66
"build": "webpack -c ./.config/webpack/webpack.config.ts --env development",

src/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"path": "img/howto-add-datasource.jpg"
9696
}
9797
],
98-
"version": "3.6.2",
98+
"version": "3.6.3",
9999
"updated": "2024-10-29"
100100
},
101101
"dependencies": {

0 commit comments

Comments
 (0)