一、下载安装,Grafana组件下载地址:https://grafana.com/grafana/download
1、wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.5.4.linux-amd64.tar.gz
2、tar -zxvf grafana-enterprise-8.5.4.linux-amd64.tar.gz
二、启动
1、cd到grafana-8.5.4目录
2、nohup ./bin/grafana-server start &
3、访问 http://IP地址:3000 ,访问OK则grafana安装OK
三、IOTDB-GRAFANA 连接器安装
1、cd到apache-iotdb-0.13.0-all-bin/tools/grafana目录(IoTDB安装请看上一篇文章)
2、nohup java -jar iotdb-grafana-connector.war &
四、数据源插件 simple-json-datasource 安装
1、下载地址:https://github.com/grafana/simple-json-datasource
2、解压到目录 /grafana-8.5.4/data/plugins 下
3、修改配置文件 grafana-8.5.4/conf/defaults.ini
找到并修改: allow_loading_unsigned_plugins =grafana-simple-json-datasource
五、配置 GRAFANA 编辑数据源
1、重启GRAFANA,登陆网页 http://IP地址:3000/ 登录系统 默认账号密码:admin / admin
2、点击左上角的 Grafana 图标;选择 Data Source选项; 点击 Add data source
3、Type:Simplejson
4、URL:http://: IP为您的IoTDB-Grafana连接器所在的服务器IP,Port为运行端口(默认8888)
5、确保IoTDB已经启动,点击“Save & Test”,出现“Data Source is working”提示表示配置成功。