Skip to content

Commit

Permalink
release: v3.2.0 (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
zitsen committed May 25, 2022
1 parent aee69f7 commit d3d9ff0
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 3 deletions.
65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- [Add Data Source](#add-data-source)
- [Import Dashboard](#import-dashboard)
- [Alert Feature](#alert-feature)
- [Important changes](#important-changes)
- [v3.2.0](#v320)
- [Monitor TDengine Database with TDengine Data Source Plugin](#monitor-tdengine-database-with-tdengine-data-source-plugin)
- [TDinsight](#tdinsight)
- [Docker Stack](#docker-stack)
Expand Down Expand Up @@ -247,6 +249,69 @@ In alert manager dashboard, you could see the alert:

![alert manager](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/alert-manager-status.png)

## Important changes

### [v3.2.0](https://github.com/taosdata/grafanaplugin/releases/tag/v3.2.0)

1. TDengine data source plugin uses secureJsonData to store sensitive data. It will cause a breaking change when you upgrading from an older version:

The simple way to migrate from older version is to reconfigure the data source like adding a data source from scratch.

If you're using Grafana provisioning configurations, you should change the data source provisioning configuration file to use `secureJsonData`:

```yaml
apiVersion: 1
datasources:
# <string, required> name of the datasource. Required
- name: TDengine
# <string, required> datasource type. Required
type: tdengine-datasource
# <string, required> access mode. direct or proxy. Required
# <int> org id. will default to orgId 1 if not specified
orgId: 1

# <string> url to TDengine rest api, eg. http://td1:6041
url: "$TDENGINE_API"

# <bool> mark as default datasource. Max one per org
isDefault: true

# <map>
secureJsonData:
# <string> a redundant url configuration. Required.
url: "$TDENGINE_API"
# <string> database user.
user: "$TDENGINE_USER"
# <string> database password.
password: "$TDENGINE_PASS"
# <string> basic authorization token. Required, can be build like
# `echo root:taosdata|base64`
basicAuth: "${TDENGINE_BASIC_AUTH}"
# aliSms* is configuration options for builtin sms notifier powered by Aliyun Cloud SMS

# <string> the key id from Aliyun.
aliSmsAccessKeyId: "$SMS_ACCESS_KEY_ID"
# <string> key secret paired to key id.
aliSmsAccessKeySecret: "$SMS_ACCESS_KEY_SECRET"
aliSmsSignName: "$SMS_SIGN_NAME"
# <string> sms template code from Aliyun. eg. SMS_123010240
aliSmsTemplateCode: "$SMS_TEMPLATE_CODE"
# <string> serialized json string for sms template parameters. eg.
# `'{"alarm_level":"%s","time":"%s","name":"%s","content":"%s"}'`
aliSmsTemplateParam: "$SMS_TEMPLATE_PARAM"
# <string> phone number list, separated by comma `,`
aliSmsPhoneNumbersList: "$SMS_PHONE_NUMBERS"
# <string> builtin sms notifier webhook address.
aliSmsListenAddr: "$SMS_LISTEN_ADDR"
version: 1
# <bool> allow users to edit datasources from the UI.
editable: true
```

2. Now users can quickly import TDinsight dashboard in **Dashboards** tab in a datasource configuration page.

![import-tdinsight-from-tdengine-ds](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/import-tdinsight-from-tdengine-ds.png)

## Monitor TDengine Database with TDengine Data Source Plugin

See [How to Monitor TDengine Cluster with Grafana](https://github.com/taosdata/grafanaplugin/blob/master/HOWTO.md) for the details.
Expand Down
Binary file added assets/import-tdinsight-from-tdengine-ds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdengine-grafana-datasource-plugin",
"private": false,
"version": "3.1.7",
"version": "3.2.0",
"description": "Grafana data-source plugin for TDengine",
"scripts": {
"build": "grunt",
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
{ "name": "GitHub", "url": "https://github.com/taosdata/grafanaplugin" },
{ "name": "AGPL-3.0", "url": "https://github.com/taosdata/grafanaplugin/blob/master/LICENSE" }
],
"version": "3.1.7",
"updated": "2022-05-14"
"version": "3.2.0",
"updated": "2022-05-25"
},

"dependencies": {
Expand Down

0 comments on commit d3d9ff0

Please sign in to comment.