2023-08-25 02:38:11 +00:00
|
|
|
|
# PilotGo-plugin-prometheus
|
|
|
|
|
|
|
|
|
|
|
|
#### 介绍
|
2023-09-12 17:29:45 +08:00
|
|
|
|
PilotGo prometheus 插件提供了集群监控看板和告警功能。
|
2023-08-25 02:38:11 +00:00
|
|
|
|
|
|
|
|
|
|
#### 使用说明
|
|
|
|
|
|
|
2023-09-12 17:29:45 +08:00
|
|
|
|
请确保使用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的主机ip;user为DB的登录用户;password为DB访问密码
|
|
|
|
|
|
|
|
|
|
|
|
3. 启动服务 systemctl start PilotGo-plugin-prometheus
|
|
|
|
|
|
停止服务 systemctl stop PilotGo-plugin-prometheus
|
|
|
|
|
|
服务状态 systemctl status PilotGo-plugin-prometheus
|
|
|
|
|
|
|
|
|
|
|
|
4. 将prometheus插件服务注册到PilotGo平台
|
|
|
|
|
|
[插件管理] -> [添加插件] -> 插件名称:prometheus;插件地址:http://ip:端口(默认8090) -> [启用插件]
|
|
|
|
|
|
启用成功,即可在PilotGo平台查看prometheus插件看板;若启动失败,通过 /opt/PilotGo/plugin/prometheus/server/log 查看插件报错原因。
|
|
|
|
|
|
|
|
|
|
|
|
#### 源码仓库
|
|
|
|
|
|
https://gitee.com/openeuler/PilotGo-plugin-prometheus
|
2023-08-25 02:38:11 +00:00
|
|
|
|
|
|
|
|
|
|
#### 特技
|
|
|
|
|
|
|
|
|
|
|
|
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
|
|
|
|
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
|
|
|
|
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
|
|
|
|
|
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
|
|
|
|
|
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
|
|
|
|
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|