add readme doc

This commit is contained in:
zhanghan2021 2023-09-12 17:29:45 +08:00
parent 77ff29c4f6
commit e45f22a50b

View File

@ -1,31 +1,35 @@
# PilotGo-plugin-prometheus
#### 介绍
PilotGo prometheus plugin provides cluster monitor and alert.
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
PilotGo prometheus 插件提供了集群监控看板和告警功能。
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
请确保使用prometheus插件之前已经正常运行pilotgo-server应用服务若未安装请通过链接 https://gitee.com/src-openeuler/PilotGo ,按照使用说明进行部署。
1. 安装prometheus插件
```bash
dnf install -y PilotGo-plugin-prometheus
```
2. 修改配置文件
```bash
vim /opt/PilotGo/plugin/prometheus/server/config.yml
```
plugin_prometheus: url地址ip为插件服务启动ip
prometheus_server: 安装prometheus的地址
http_server: 插件服务启动地址
pilotgo_server: PilotGo server服务地址
mysql: host为安装DB的主机ipuser为DB的登录用户password为DB访问密码
#### 参与贡献
3. 启动服务 systemctl start PilotGo-plugin-prometheus
停止服务 systemctl stop PilotGo-plugin-prometheus
服务状态 systemctl status PilotGo-plugin-prometheus
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
4. 将prometheus插件服务注册到PilotGo平台
[插件管理] -> [添加插件] -> 插件名称prometheus插件地址http://ip:端口默认8090 -> [启用插件]
启用成功即可在PilotGo平台查看prometheus插件看板若启动失败通过 /opt/PilotGo/plugin/prometheus/server/log 查看插件报错原因。
#### 源码仓库
https://gitee.com/openeuler/PilotGo-plugin-prometheus
#### 特技