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.3
current 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)
Restart the current Grafana at this time
3. Turn on the json output web service of IOTDB
Go directly to tools/grafana under IOTDB
This one其实就是一个SpringBoot的项目打成的war包,可以修改其中的application.properties文件来修改当前的IOTDB的启动地址和端口
Start it:java -jar iotdb-grafana.war
The port it starts by default is8888
4. Enter Grafana to configure DataSource
Visit Grafana: http://ip address:3000/, then enter admin/admin
Choose to add add DataSource
Choose SimpleJson
All that remains is to configure the service:
5. Configure the data display dashboard
Click Manage
Click New Dashboard
Click Add new panel
Select the type of chart that needs to be displayed, and the time series field that needs to be displayed, and save it
Finally select the field to be viewed
This is done