Integrate with FineBI
FanRuan develops business intelligence and data analytics products including FineBI and FineReport. By using the TDengine Java connector, FineBI can access TDengine data directly for analysis and visualization without custom code.
Prerequisites
Prepare the following environment:
- Deploy and start TDengine v3.3.4.0 or later (Enterprise or Community Edition).
- Start taosAdapter. For details, see the taosAdapter Reference.
- Download and install FineBI.
- Download the
fine_conf_entityplugin, which enables JDBC driver uploads. - Download a recent TDengine JDBC connector from Maven Central. This example uses
taos-jdbcdriver-3.4.0-dist.jar.
Configure the Data Source
-
In the
db.scriptconfiguration file on the FineBI server, locateSystemConfig.driverUploadand set it totrue.- Windows:
webapps/webroot/WEB-INF/embed/finedb/db.scriptunder the installation directory. - Linux/macOS:
/usr/local/FineBI6.1/webapps/webroot/WEB-INF/embed/finedb/db.script.
- Windows:
-
Start FineBI and open
http://<finebi-server-ip>:37799/webroot/decisionin a browser. -
Log in, choose Management System > Plugin Management, and then choose Install from Local in the application marketplace to install the downloaded
fine_conf_entityplugin. -
Choose Management System > Data Connection > Data Connection Management. Open Driver Management, choose New Driver, and enter a name such as
tdengine-websocket. -
Choose Upload File and upload the TDengine Java connector, such as
taos-jdbcdriver-3.4.0-dist.jar. Selectcom.taosdata.jdbc.ws.WebSocketDriverfrom the driver list and save the driver. -
On the Data Connection Management page, choose New Data Connection > Other > Other JDBC.
-
Enter a connection name, choose Custom as the driver type, and select the configured driver. Enter a connection URL such as:
jdbc:TAOS-WS://localhost:6041/power?user=root&password=taosdata&fineBIDialect=mysql&varcharAsString=trueTest the connection and save it after the test succeeds.
tipfineBIDialect=mysqltells FineBI to parse and execute SQL using its MySQL dialect rules.
Analyze Data
Prepare Data
-
Choose Public Data, create a folder such as
TDengine, and use the + button to create either a database-table dataset or an SQL dataset. -
To create a database-table dataset, select the TDengine connection, choose a table such as
meters, and confirm the selection. -
To create an SQL dataset, enter a display name, select the TDengine connection, enter the SQL statement, preview the result, and confirm the dataset.
Smart Meter Example
-
Choose My Analysis, create a folder such as
TDengine, and use the + button to create an analysis subject. -
Select a dataset such as
metersand confirm the association. -
Open the Components tab and drag fields to the horizontal or vertical axis to create a chart.