# PilotGo-plugin-prometheus **Repository Path**: wangjian_code/PilotGo-plugin-prometheus ## Basic Information - **Project Name**: PilotGo-plugin-prometheus - **Description**: PilotGo prometheus plugin provides cluster monitor and alert. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 10 - **Created**: 2024-11-14 - **Last Updated**: 2024-11-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PilotGo-plugin-prometheus #### 介绍 PilotGo prometheus 插件提供了集群监控看板和告警功能。 #### 软件架构 系统环境:openEuler 23.09 开发语言:Golang > 1.18、Vue3、NodeJs > 14 #### 贡献/开发步骤 请提前安装 golang-prometheus-node_exporter、prometheus > 2.28、mysql ```bash $ yum install -y golang-prometheus-node_exporter $ yum install -y prometheus > 2.28 $ yum install -y mysql ``` 1. 拉取仓库代码 ```bash $ git clone https://gitee.com/openeuler/PilotGo-plugin-prometheus.git ``` 2. 修改配置文件 ```bash $ mv ./server/config.yml.templete ./server/config.yml $ vim ./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. 前端编译 ```bash $ cd ./web $ yarn install $ yarn build ``` 4. 启动插件 ```bash $ cd ./server $ go run main.go ``` 网页查看 http://ip:8090/plugin/prometheus #### 补充链接 1. [PilotGo使用手册](https://gitee.com/openeuler/docs/tree/master/docs/zh/docs/PilotGo/使用手册.md) 2. PilotGo[代码仓](https://gitee.com/openeuler/PilotGo) 3. PilotGo[软件包仓](https://gitee.com/src-openeuler/PilotGo) #### 特技 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/)