docs/en/10-third-party/05-bi/11-superset.md
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.
Prepare the following environment:
Enter the new database connection page, "Superset" -> "Setting" -> "Database Connections" -> "+DATABASE".
Select the last item "Other" from the drop-down list of "SUPPORTED DATABASES".
Enter a connection name in "DISPLAY NAME", you can enter any name.
Fill in the database connection string.
Fill in the "SQLAlchemy URI" in the following format, and make sure the information is correct.
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 URI" is:
taosws://root:taosdata@localhost:6041
Test the connection.
Click "TEST CONNECTION" to check if the connection is successful. After the test passes, click the "CONNECT" button to save the configuration.
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:
We chose two popular templates from the "Superset Chart" template to showcase their effects, using smart meter data as an example:
"Aggregate" Type, which displays the maximum voltage value collected per minute during the specified time period in Group 4.
"RAW RECORDS" Type, which displays the collected values of current and voltage during the specified time period in Group 4.