Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinekoo authored Nov 13, 2019
1 parent 862c556 commit b785838
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
# Scout Plugin for grafana server

这是一个简单的JSON数据源服务器,用于grafana的展示。
只需要导入模板即可,前提是已安装了grafana server。

关于grafana SimpleJSON datasource
可以关注:https://github.com/grafana/simple-json-datasource

只需要导入模板即可,前提是已安装了grafana server。

关于grafana SimpleJSON datasource
可以关注:https://github.com/grafana/simple-json-datasource



下载直接运行 Scout_grafana_server 即可,建议放到 Scout目录里。

```shell
Expand All @@ -16,7 +17,6 @@ cp Scout_grafana_server /usr/local/scout/plugin/
ln -s /usr/local/scout/plugin/Scout_grafana_server /usr/local/bin/

/usr/local/bin/Scout_grafana_server &

```


Expand Down Expand Up @@ -45,4 +45,27 @@ service grafana-server start
```

## 导入模板
* 添加datasource
* 安装 grafana-simple-json-datasource 插件
```shell
sudo grafana-cli plugins install grafana-simple-json-datasource
sudo service grafana-server restart
```

* 后台配置 simple-json
1、添加datasource
<img src='https://github.com/ywjt/Scout/blob/master/plugin/doc/6F7268C1-9277-4516-B5D7-2D95477EF22C.png'>

2、选择JSON引擎
<img src='https://github.com/ywjt/Scout/blob/master/plugin/doc/20AEAE30-A1D0-4D24-9162-736EC6DB76ED.png'>

3、配置JSON引擎接口
<img src='https://github.com/ywjt/Scout/blob/master/plugin/doc/7048349F-3AE4-474E-A0F7-069699661B48.png'>

4、导入JSON模板
<img src='https://github.com/ywjt/Scout/blob/master/plugin/doc/6563C7A9-A76A-4851-BF53-91D6CF08CE4F.png'>

5、最终效果
<img src='https://github.com/ywjt/Scout/blob/master/plugin/web_demo.png'>



0 comments on commit b785838

Please sign in to comment.