Skip to content

Commit

Permalink
Merge pull request #279 from taosdata/fix/TD-30850
Browse files Browse the repository at this point in the history
imporove sql
  • Loading branch information
sheyanjie-qq authored Jul 4, 2024
2 parents 8a4270f + 3311cc6 commit 49a136e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboards/TDinsightV3.json
Original file line number Diff line number Diff line change
Expand Up @@ -2838,7 +2838,7 @@
"formatType": "Time series",
"queryType": "SQL",
"refId": "A",
"sql": "select _wstart as ts, last(cpu_engine) as taosd, last(cpu_system) as `system` from $database.taosd_dnodes_info where dnode_ep = '$fqdn' and _ts >= $from and _ts <= $to interval($interval) fill(null)"
"sql": "select _wstart as ts, avg(cpu_engine) as taosd, avg(cpu_system) as `system` from $database.taosd_dnodes_info where dnode_ep = '$fqdn' and _ts >= $from and _ts <= $to interval($interval) fill(null)"
}
],
"timeFrom": null,
Expand Down Expand Up @@ -3086,7 +3086,7 @@
"formatType": "Time series",
"queryType": "SQL",
"refId": "A",
"sql": "select _wstart as ts, last(io_read_disk) as taosd_io_read, last(io_write_disk) as taosd_io_write from $database.taosd_dnodes_info where dnode_ep = '$fqdn' and _ts >= $from and _ts <= $to interval($interval) fill(null)"
"sql": "select _wstart as ts, avg(io_read_disk) as taosd_io_read, avg(io_write_disk) as taosd_io_write from $database.taosd_dnodes_info where dnode_ep = '$fqdn' and _ts >= $from and _ts <= $to interval($interval) fill(null)"
}
],
"timeFrom": null,
Expand Down

0 comments on commit 49a136e

Please sign in to comment.