目前DolphinDB的插件不能够支持最新版本的grafana,目前可用的版本为grafana7.2.2
按照以下步骤进行安装
1. 拷贝安装包grafana-enterprise-7.2.2-1.x86_64.rpm到目标机器
2. 到目标目录安装grafana: 执行sudo rpm -Uvh grafana-enterprise-7.2.2-1.x86-64.rpm
3. 此时目标机器已经有了/var/lib/grafana/plugins/目录,若没有该目录,运行以下命令启动grafana,自动生成该目录
```
sudo service grafana-server start
```
4. 将dolphindb插件grafana-datasource.zip(http://www.github.com/dolphindb/grafana-datasource) 拷贝到此目录下,再此目录下执行`unzip grafana-datasource.zip` 内容解压,最后类似这样的目录结构
```
/var/lib/grafana/plugins/grafana-datasource
├── appveyor.yml
├── coverage
│ └── junit.xml
├── dist
│ ├── css
│ │ └── query-editor.css
│ ├── datasource.js
│ ├── datasource.js.map
│ ├── img
│ │ └── logo.jpg
│ ├── LICENSE
│ ├── module.js
│ ├── module.js.map
│ ├── partials
│ │ ├── annotations.editor.html
│ │ ├── config.html
│ │ ├── query.editor.html
│ │ └── query.options.html
│ ├── plugin.json
│ ├── query_ctrl.js
│ ├── query_ctrl.js.map
│ ├── README.md
```
5. 启动grafana服务,并设置开机启动启动
```
sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl enable grafana-server
```