Apache IoTDB: Integrate Grafana and realize data display

1. Statement

The current content is mainly used to record the current integration process of IOTDB and Grafana

Current version:, the IOTDB 0.11.2,Grafana 7.4.3current content source official document

2. Pull the simple-json-datasource plugin

git clone https://github.com/grafana/simple-json-datasource.git

Note that the plug-in is pulled and placed in the current Grafana data/plugins (uploading is also possible)
Insert picture description here

Restart the current Grafana at this time

3. Turn on the json output web service of IOTDB

Go directly to tools/grafana under IOTDB

Insert picture description here
This one其实就是一个SpringBoot的项目打成的war包,可以修改其中的application.properties文件来修改当前的IOTDB的启动地址和端口

Start it:java -jar iotdb-grafana.war
Insert picture description here
The port it starts by default is8888

4. Enter Grafana to configure DataSource

Visit Grafana: http://ip address:3000/, then enter admin/admin
Insert picture description here

Choose to add add DataSourceInsert picture description here
Choose SimpleJson
Insert picture description here
All that remains is to configure the service:
Insert picture description here

5. Configure the data display dashboard

Click Manage
Insert picture description here

Click New Dashboard
Insert picture description here
Click Add new panel
Insert picture description here
Select the type of chart that needs to be displayed, and the time series field that needs to be displayed, and save it
Insert picture description here

Finally select the field to be viewed
Insert picture description here
This is done

Guess you like

Origin blog.csdn.net/weixin_45492007/article/details/114482234