-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/taosdata/TDengine
- Loading branch information
Showing
697 changed files
with
38,616 additions
and
9,404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# timezone | ||
ExternalProject_Add(tz | ||
GIT_REPOSITORY https://github.com/eggert/tz.git | ||
GIT_TAG main | ||
SOURCE_DIR "${TD_CONTRIB_DIR}/tz" | ||
BINARY_DIR "" | ||
CONFIGURE_COMMAND "" | ||
#BUILD_COMMAND "" | ||
INSTALL_COMMAND "" | ||
TEST_COMMAND "" | ||
GIT_SHALLOW true | ||
GIT_PROGRESS true | ||
BUILD_COMMAND "" | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
sidebar_label: Superset | ||
title: Integration With Superset | ||
toc_max_heading_level: 4 | ||
--- | ||
Apache Superset is a modern enterprise level business intelligence (BI) web application primarily used for data exploration and visualization. | ||
It is supported by the Apache Software Foundation and is an open source project with an active community and rich ecosystem. | ||
Apache Superset provides an intuitive user interface that makes creating, sharing, and visualizing data simple, while supporting multiple data sources and rich visualization options. | ||
|
||
Through the Python connector of TDengine, Superset can support TDengine data sources and provide functions such as data presentation and analysis | ||
|
||
## Install Apache Superset | ||
|
||
Ensure that Apache Superset v2.1.0 or above is installed. If not, please visit [official website](https://superset.apache.org/) to install | ||
|
||
## Install TDengine | ||
|
||
Both TDengine Enterprise Edition and Community Edition are supported, with version requirements of 3.0 or higher | ||
|
||
## Install TDengine Python Connector | ||
|
||
The Python connector of TDengine comes with a connection driver that supports Superset in versions 2.1.18 and later, which will be automatically installed in the Superset directory and provide data source services. | ||
The connection uses the WebSocket protocol, so it is necessary to install the `taos-ws-py` component of TDengine separately. The complete installation script is as follows: | ||
```bash | ||
pip3 install taospy | ||
pip3 install taos-ws-py | ||
``` | ||
|
||
## Configure TDengine Connection In Superset | ||
|
||
**Step 1**, enter the new database connection page, "Superset" → "Setting" → "Database Connections" → "+DATABASE" | ||
**Step 2**, select TDengine database connection, select the "TDengine" option from the drop-down list of "SUPPORTED DATABASES". | ||
:::tip | ||
If there is no TDengine option in the drop-down list, please confirm that the steps of installing, `Superset` is first and `Python Connector` is second. | ||
::: | ||
**Step 3**, write a name of connection in "DISPLAY NAME" | ||
**Step 4**, The "SQLALCHEMY URL" field is a key connection information string, and it must be filled in correctly | ||
```bash | ||
taosws://user:password@host:port | ||
``` | ||
| Parameter | <center>Parameter Description</center> | | ||
|:---------- |:--------------------------------------------------------- | | ||
|user | Username for logging into TDengine database | | ||
|password | Password for logging into TDengine database | | ||
|host | Name of the host where the TDengine database is located | | ||
|port | The port that provides WebSocket services, default is 6041 | | ||
|
||
Example: | ||
The TDengine database installed on this machine provides WebSocket service port 6041, using the default username and password, "SQLALCHEMY URL" is: | ||
```bash | ||
taosws://root:taosdata@localhost:6041 | ||
``` | ||
**Step 5**, configure the connection string, click "TEST CONNECTION" to test if the connection can be successful. After passing the test, click the "CONNECT" button to complete the connection | ||
|
||
|
||
## Start | ||
|
||
There is no difference in the use of TDengine data source compared to other data sources. Here is a brief introduction to basic data queries: | ||
1. Click the "+" button in the upper right corner of the Superset interface, select "SQL query", and enter the query interface | ||
2. Select the "TDengine" data source that has been created earlier from the dropdown list of "DATABASES" in the upper left corner | ||
3. Select the name of the database to be operated on from the drop-down list of "SCHEMA" (system libraries are not displayed) | ||
4. "SEE TABLE SCHEMA" select the name of the super table or regular table to be operated on (sub tables are not displayed) | ||
5. Subsequently, the schema information of the selected table will be displayed in the following area | ||
6. In the SQL editor area, any SQL statement that conforms to TDengine syntax can be entered for execution | ||
|
||
## Example | ||
|
||
We chose two popular templates from the Superset Chart template to showcase their effects, using smart meter data as an example: | ||
|
||
1. "Aggregate" Type, which displays the maximum voltage value collected per minute during the specified time period in Group 4 | ||
|
||
![superset-demo1](./superset-demo1.jpeg) | ||
|
||
2. "RAW RECORDS" Type, which displays the collected values of current and voltage during the specified time period in Group 4 | ||
|
||
![superset-demo2](./superset-demo2.jpeg) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.