Code Monkey home page Code Monkey logo

pwm's Introduction

PWM 是一个管理prometheus alertmanager的统一管理平台

包含功能:

  1. 管理prometheus的配置
  2. 管理exporter
  3. 管理报警规则的配置
  4. 支持报警分组
  5. 支持邮件 短信 企业微信报警
  6. 配置之间用服务树方式展现
  7. 报警历史记录查询
  8. 报警静默配置

此平台优点:

  1. 支持用户组管理
  2. 通过服务树,清晰的展示数据源 报警规则 报警附属配置之间的关系
  3. 支持静默配置
  4. 支持自定义报警方式 如 短信 微信 邮件报警
  5. 减少操作人员学习成本
  6. 支持记录展示报警历史
  7. 操作管理方便 快捷

此平台架构图:(图中画红框的为此平台所需架构) django framework + vue-cli + consul + confd + prometheus + alertmanager 其中exporter会以服务的方式注册到consul中,confd服务管理prometheus rules alertmanager的配置文件 Image text

PWM 功能列表

image text

PWM dashboard Image text

PWM 报警规则 Image text Image text

PWM 静默管理 image text image text

安装部署

python-2.7.5 Django-1.11.22 djangorestframework-3.9.4 node-v10.15.0 npm-6.4.1

  1. 后端安装 cd PWM/
    pip install -r requirements.txt
    python manage.py makemigrations
    python manage.py migrate
    python manage.py runserver 0.0.0.0:888

  2. 前端安装 前端代码地址 PWM-web

部署需要安装node npm
注: 在启动服务之前,cd PWM-web && grep -R 10.50.182.65 *, 把文件中的ip地址修改成你后端服务的ip地址
npm install -g @vue/cli
cd PWM-web/jy_cmdb_vue
npm run dev

pwm's People

Contributors

yanchao3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.