2023-09-12 17:29:45 +08:00

2.0 KiB
Raw Blame History

PilotGo-plugin-prometheus

介绍

PilotGo prometheus 插件提供了集群监控看板和告警功能。

使用说明

请确保使用prometheus插件之前已经正常运行pilotgo-server应用服务若未安装请通过链接 https://gitee.com/src-openeuler/PilotGo ,按照使用说明进行部署。

  1. 安装prometheus插件
dnf install -y PilotGo-plugin-prometheus
  1. 修改配置文件
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访问密码

  1. 启动服务 systemctl start PilotGo-plugin-prometheus
    停止服务 systemctl stop PilotGo-plugin-prometheus
    服务状态 systemctl status PilotGo-plugin-prometheus

  2. 将prometheus插件服务注册到PilotGo平台 [插件管理] -> [添加插件] -> 插件名称prometheus插件地址http://ip:端口默认8090 -> [启用插件]
    启用成功即可在PilotGo平台查看prometheus插件看板若启动失败通过 /opt/PilotGo/plugin/prometheus/server/log 查看插件报错原因。

源码仓库

https://gitee.com/openeuler/PilotGo-plugin-prometheus

特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/