Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/ts 4416 #252

Merged
merged 2 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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


## [3.4.5] - 2023-12-22

### Bug Fixes
fix slow sqls
remove console log

## [3.4.3] - 2023-12-22

### Bug Fixes
fix problem with the token field
update some outdated pictures

## [3.4.2] - 2023-12-13

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions dashboards/TDinsightV3.json
Original file line number Diff line number Diff line change
Expand Up @@ -2440,7 +2440,7 @@
"formatType": "Time series",
"queryType": "SQL",
"refId": "A",
"sql": "select last(uptime) as uptime from $database.dnodes_info where dnode_ep = '$fqdn'"
"sql": "select last(uptime) as uptime from $database.dnodes_info where dnode_ep = '$fqdn' and ts >= $from and ts <= $to"
}
],
"title": "Uptime",
Expand Down Expand Up @@ -2571,7 +2571,7 @@
"formatType": "Time series",
"queryType": "SQL",
"refId": "A",
"sql": "select last(cpu_cores) as cpu_cores from $database.dnodes_info where dnode_ep = '$fqdn' interval ($interval)"
"sql": "select last(cpu_cores) as cpu_cores from $database.dnodes_info where dnode_ep = '$fqdn' and ts >= $from and ts <= $to"
}
],
"title": "CPU Cores",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tdengine-datasource",
"version": "3.4.4",
"version": "3.4.5",
"description": "Grafana datasource plugin for TDengine",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env development",
Expand Down
4 changes: 2 additions & 2 deletions src/components/ConfigEditor/ConfigEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export function ConfigEditor(props: EditorProps): ReactElement {
const onChangeToken = useChangeSecureOptions(props, 'token')
const onResetToken = useResetSecureOptions(props, 'token')

console.log("ConfigEditor:" + secureJsonData?.token)
console.log("secureJsonFields.token:" + secureJsonFields.token)
// console.log("ConfigEditor:" + secureJsonData?.token)
// console.log("secureJsonFields.token:" + secureJsonFields.token)

const [active, setActive] = React.useState((secureJsonFields && secureJsonFields.token) ? authType.Token : authType.Basic )

Expand Down
Loading