Skip to content

Commit f13a0db

Browse files
author
Tianchen Fu
committed
update docs and version
1 parent 457b67d commit f13a0db

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Grafana is an open-source data visualization web application that excels at dyna
1616

1717
DolphinDB has developed the Grafana data source plugin (dolphindb-datasource-go), allowing users to interact with DolphinDB by writing query scripts and subscribing to streaming tables on the Grafana dashboard, achieving visualization of DolphinDB time-series data.
1818

19-
<img src='./demo.png' width='1200'>
19+
<img src='./img/en/demo.png' width='1200'>
2020

2121
## Installation Guide
2222

README.zh.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@
1313

1414
## [English](./README.md) | 中文
1515

16-
Grafana 是一个开源的数据可视化 Web 应用程序,擅长动态展示时序数据,支持多种数据源。用户通过配置连接的数据源,编写查询脚本,可在浏览器中展示数据图表
16+
DolphinDB 特别提供了 dolphindb-datasource-go 数据源插件。该插件使用 Go 语言编写,运行在 Grafana 后端,支持用户在 Grafana 面板上实现 DolphinDB 时序数据的可视化
1717

18-
DolphinDB 开发了 Grafana 数据源插件 (dolphindb-datasource-go),让用户在 Grafana 面板 (dashboard) 上通过编写查询脚本、订阅流数据表的方式,与 DolphinDB 进行交互,实现 DolphinDB 时序数据的可视化
18+
注意:使用该插件需要 Grafana Server 和数据库部署在同一网络下,或 Grafana Server 可以连接到数据库
1919

20-
<img src='./demo.png' width='1200'>
20+
<img src='./img/demo.png' width='1200'>
2121

2222
## 安装方法
2323
#### 1. 安装 Grafana
2424
前往 Grafana 官网: https://grafana.com/oss/grafana/ 下载并安装最新的开源版本 (OSS, Open-Source Software)
2525

2626
#### 2. 安装 dolphindb-datasource 插件
27-
[releases](https://github.com/dolphindb/grafana-datasource/releases) 中下载最新版本的插件压缩包,如 `dolphindb-datasource.v2.0.900.zip`
27+
[Github-grafana_datasource-Releases](https://github.com/dolphindb/grafana-datasource/releases) 中下载最新版本的插件压缩包,如 `dolphindb-datasource.v2.0.900.zip`
2828

2929
将压缩包中的 dolphindb-datasource-go 文件夹解压到以下路径(如果不存在 plugins 目录,可手动创建):
3030

31-
- Windows: `<grafana 安装目录>/data/plugins/`
31+
- Windows: `<grafana 安装目录>\data\plugins\`
3232
- Linux: `/var/lib/grafana/plugins/`
3333

3434
在 plugin 目录下,应形成形如以下的文件结构:
@@ -51,8 +51,7 @@ plugins
5151
```
5252

5353
#### 3. 修改 Grafana 配置文件,使其允许加载未签名的 dolphindb-datasource 插件
54-
阅读 https://grafana.com/docs/grafana/latest/administration/configuration/#configuration-file-location
55-
打开并编辑配置文件:
54+
推荐用户阅读 [Grafana 配置说明文档](https://grafana.com/docs/grafana/latest/administration/configuration/#configuration-file-location),然后打开并编辑配置文件。
5655

5756
`[plugins]` 部分下面取消注释 `allow_loading_unsigned_plugins`,并配置为 `dolphindb-datasource-go`,即把下面的
5857
```ini
@@ -130,12 +129,12 @@ A:
130129

131130
如果需要自定义刷新间隔,可以打开 `dashboard settings > Time options > Auto refresh`, 输入自定义的间隔
132131
如果需要定义比 5s 更小的刷新间隔,比如 1s,需要按下面的方法操作:
133-
修改 Grafana 配置文件
132+
1.修改 Grafana 配置文件
134133
```ini
135134
[dashboards]
136135
min_refresh_interval = 1s
137136
```
138-
修改完后重启 Grafana
137+
2.修改完后重启 Grafana
139138
(参考: https://community.grafana.com/t/how-to-change-refresh-rate-from-5s-to-1s/39008/2)
140139

141140

File renamed without changes.

img/en/demo.png

154 KB
Loading

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "dolphindb-datasource",
3-
"version": "1.0.0",
2+
"name": "dolphindb-datasource-go",
3+
"version": "3.0.1",
44
"description": "Dolphin db grafana datasource",
55
"scripts": {
66
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",

0 commit comments

Comments
 (0)