Workbench Deployment

The visualization console is one of the supporting tools for IoTDB (similar to Navicat for MySQL). It is an official application tool system used for database deployment implementation, operation and maintenance management, and application development stages, making the use, operation, and management of databases simpler and more efficient, truly achieving low-cost management and operation of databases. This document will assist you in installing Workbench.

The instructions for using the visualization console tool can be found in the Instructions section of the document.

Installation Preparation

Preparation ContentNameVersion RequirementsLink
Operating SystemWindows or Linux--
Installation EnvironmentJDKv1.5.4 and below require ≥ 1.8; v1.5.5 and above require ≥ 17. Choose the ARM or x64 installer according to your system.https://www.oracle.com/java/technologies/downloads/
Related SoftwarePrometheusRequires installation of V2.30.3 and above.https://prometheus.io/download/
DatabaseIoTDBRequires V1.2.0 Enterprise Edition and aboveYou can contact business or technical support to obtain
ConsoleIoTDB-Workbench-<version>-You can choose according to the appendix version comparison table and contact business or technical support to obtain it

Pre-installation Check

To ensure the Workbench installation package you obtained is complete and valid, we recommend performing an SHA512 verification before proceeding with the installation and deployment.

Preparation:

  • Obtain the officially released SHA512 checksum: Contact the Timecho Team to get it.

Verification Steps (Linux as an Example):

  1. Open the terminal and navigate to the directory where the installation package is stored (e.g., /data/workbench):
       cd /data/workbench
    
  2. Execute the following command to calculate the hash value:
       sha512sum IoTDB-Workbench-`<version>`.zip
    
  3. The terminal will output a result (the left part is the SHA512 checksum, and the right part is the file name):

img

  1. Compare the output result with the official SHA512 checksum. Once confirmed that they match, you can proceed with the installation and deployment operations in accordance with the procedures below.

Notes:

  • If the verification results do not match, please contact the Timecho Team to re-obtain the installation package.
  • If a “file not found” prompt appears during verification, check whether the file path is correct or if the installation package has been fully downloaded.

Installation Steps

Step 1: IoTDB enables monitoring indicator collection

  1. Open the monitoring configuration item. The configuration items related to monitoring in IoTDB are disabled by default. Before deploying the monitoring panel, you need to open the relevant configuration items (note that the service needs to be restarted after enabling monitoring configuration).
  1. Restart all nodes. After modifying the monitoring indicator configuration of three nodes, the confignode and datanode services of all nodes can be restarted:

    ./sbin/stop-standalone.sh      #Stop confignode and datanode first
    ./sbin/start-confignode.sh  -d #Start confignode
    ./sbin/start-datanode.sh  -d   #Start datanode 
    
  2. After restarting, confirm the running status of each node through the client. If the status is Running, it indicates successful configuration:

Step 2: Install and configure Prometheus

  1. Download the Prometheus installation package, which requires installation of V2.30.3 and above. You can go to the Prometheus official website to download it (https://prometheus.io/docs/introduction/first_steps/)

  2. Unzip the installation package and enter the unzipped folder:

    tar xvfz prometheus-*.tar.gz
    cd prometheus-*
    
  3. Modify the configuration. Modify the configuration file prometheus.yml as follows

    1. Add configNode task to collect monitoring data for ConfigNode
    2. Add a datanode task to collect monitoring data for DataNodes
    global:
    scrape_interval: 15s 
    evaluation_interval: 15s 
    scrape_configs:
    - job_name: "prometheus"
        static_configs:
        - targets: ["localhost:9090"]
    - job_name: "confignode"
        static_configs:
        - targets: ["iotdb-1:9091","iotdb-2:9091","iotdb-3:9091"]
        honor_labels: true
    - job_name: "datanode"
        static_configs:
        - targets: ["iotdb-1:9092","iotdb-2:9092","iotdb-3:9092"]
        honor_labels: true
    
  4. Start Prometheus. The default expiration time for Prometheus monitoring data is 15 days. In production environments, it is recommended to adjust it to 180 days or more to track historical monitoring data for a longer period of time. The startup command is as follows:

    ./prometheus --config.file=prometheus.yml --storage.tsdb.retention.time=180d
    
  5. Confirm successful startup. Enter in browser http://IP:port Go to Prometheus and click on the Target interface under Status. When you see that all States are Up, it indicates successful configuration and connectivity.

Step 3: Install Workbench

  1. Enter the config directory of iotdb Workbench -<version>

  2. Modify Workbench configuration file: Go to the config folder and modify the configuration file application-prod.properties. If you are installing it locally, there is no need to modify it. If you are deploying it on a server, you need to modify the IP address

    Workbench can be deployed on a local or cloud server as long as it can connect to IoTDB

    ConfigurationBefore ModificationAfter modification
    pipe.callbackUrlpipe.callbackUrl=http://127.0.0.1pipe.callbackUrl=http://<Workbench's IP address>

  3. Startup program: Please execute the startup command in the sbin folder of IoTDB Workbench -<version> Windows:

    # Start Workbench in the background
    start.bat -d
    

    Linux:

    # Start Workbench in the background
    ./start.sh -d
    
  4. You can use the jps command to check if the startup was successful, as shown in the figure:

  5. Verification successful: Open “http://Server IP: Port in configuration file” in the browser to access, for example:“http://127.0.0.1:9190” When the login interface appears, it is considered successful

Step 4: Configure Instance Information

  1. Configure instance information: You only need to fill in the following information to connect to the instance

    Field NameIs It A Required FieldField MeaningDefault Value
    Connection TypeYesThe content filled in for different connection types varies, and supports selecting “single machine, cluster, dual active”-
    Instance NameYesYou can distinguish different instances based on their names, with a maximum input of 50 characters-
    InstanceYesFill in the database address (dn_rpc_address field in the iotdb/conf/iotdb-system.properties file) and port number (dn_rpc_port field). Note: For clusters and dual active devices, clicking the “+” button supports entering multiple instance information-
    PrometheusNoFill in http://<Prometheus IP address>:<Prometheus port number>/app/v1/query to view some monitoring information on the homepage. We recommend that you configure and use it-
    UsernameYesFill in the username for IoTDB, supporting input of 4 to 32 characters, including uppercase and lowercase letters, numbers, and special characters (! @ # $% ^&* () _+-=)root
    Enter PasswordNoFill in the password for IoTDB. To ensure the security of the database, we will not save the password. Please fill in the password yourself every time you connect to the instance or testroot
  2. Test the accuracy of the information filled in: You can perform a connection test on the instance information by clicking the “Test” button

Appendix: IoTDB and Workbench Version Comparison Table

VersionDescriptionSupported IoTDB Versions
V1.5.7Optimize the point list by splitting point names into device names and points, ensure the point selection area supports horizontal scrolling, and align the export file column order with the page display.All 1.x versions from V1.3.4 onward
V1.5.6Enhanced CSV import/export: optional tags/aliases on import; support for measurement descriptions with backtick-quoted quotes on export.All 1.x versions from V1.3.4 onward
V1.5.5Added server clock functionality and support for activating Enterprise Edition license databasesAll 1.x versions from V1.3.4 onward
V1.5.4Added authentication for Prometheus settings in Instance ManagementAll 1.x versions from V1.3.4 onward
V1.5.1Added AI analysis and pattern matchingAll 1.x versions from V1.3.2 onward
V1.4.0Added tree model display and English UIAll 1.x versions from V1.3.2 onward
V1.3.1Enhanced analysis methods and import templatesAll 1.x versions from V1.3.2 onward
V1.3.0Added DB configuration and UI refinementsAll 1.x versions from V1.3.2 onward
V1.2.6Optimized permission controlsAll 1.x versions from V1.3.1 onward
V1.2.5Added “Common Templates” and cachingAll 1.x versions from V1.3.0 onward
V1.2.4Added import/export for calculations, time alignment fieldAll 1.x versions from V1.2.2 onward
V1.2.3Added activation details and analysis featuresAll 1.x versions from V1.2.2 onward
V1.2.2Optimized point description displayAll 1.x versions from V1.2.2 onward
V1.2.1Added sync monitoring panel, Prometheus hintsAll 1.x versions from V1.2.2 onward
V1.2.0Major Workbench upgradeAll 1.x versions from V1.2.0 onward