diff --git a/PilotGo-plugin-grafana.spec b/PilotGo-plugin-grafana.spec index 0156df17dfb4e4af848777f4b12920f94e2101cb..9bf792fabc79fe2cff1d1b78036d9e84d3d1ded6 100644 --- a/PilotGo-plugin-grafana.spec +++ b/PilotGo-plugin-grafana.spec @@ -2,7 +2,7 @@ Name: PilotGo-plugin-grafana Version: 1.0.1 -Release: 1 +Release: 2 Summary: PilotGo grafana plugin maintains grafana to provide beautiful visual monitoring interface. License: MulanPSL-2.0 URL: https://gitee.com/openeuler/PilotGo-plugin-grafana @@ -47,6 +47,9 @@ install -D -m 0644 scripts/PilotGo-plugin-grafana.service %{buildroot}%{_unitdir %changelog +* Wed Sep 13 2023 wubijie - 1.0.1-2 +- Modify the README.md file + * Fri Sep 01 2023 jianxinyu - 1.0.1-1 - Package init diff --git a/README.md b/README.md index 1f41bbc180da5d06903a0fc0ee21bba6b3b23a5f..cbdebc11e376089ccc8ea70177469d1c0504d296 100644 --- a/README.md +++ b/README.md @@ -3,21 +3,46 @@ #### 介绍 PilotGo grafana plugin maintains grafana to provide beautiful visual monitoring interface. -#### 软件架构 -软件架构说明 +#### 使用说明 +请确保使用grafana插件之前已经正常运行pilotgo-server应用服务,若未安装,请通过链接 https://gitee.com/src-openeuler/PilotGo ,按照使用说明进行部署。 #### 安装教程 -1. xxxx -2. xxxx -3. xxxx +1. 安装grafana; +2. 安装PilotGo-plugin-grafana: + >dnf install PilotGo-plugin-grafana +3. 修改配置文件: + >vim /etc/grafana/grafana.ini + >root_url = http://真实ip:9999/plugin/grafana + >serve_from_sub_path = true + >allow_embedding = true + + 重启grafana服务: + >systemctl restart grafana -#### 使用说明 + >vim /opt/PilotGo/plugin/grafana/config.yaml + + http_server:addr为安装PilotGo-plugin-grafana地址; + + grafana_server:addr为安装grafana地址; + + pilotgo_server:addr为安装PilotGo-server地址; + + 启动服务 + >systemctl start PilotGo-plugin-grafana + + 停止服务 + >systemctl stop PilotGo-plugin-grafana + + 服务状态 + >systemctl status PilotGo-plugin-grafana +4. 将grafana插件服务注册到PilotGo平台 [插件管理] -> [添加插件] -> 插件名称:grafana;插件地址:http://ip:端口(默认9999) -> [启用插件] +启用成功,即可在PilotGo平台查看grafana插件看板;若启动失败,通过 /opt/PilotGo/plugin/grafana/log 查看插件报错原因。 + +#### 源码仓库 -1. xxxx -2. xxxx -3. xxxx +PilotGo-plugin-grafana[源码仓](https://gitee.com/openeuler/PilotGo-plugin-grafana) #### 参与贡献