wbcmax / flask-falcon-wechat

open-falcon 企业微信报警插件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

open-falcon 企业微信报警插件

version version

 ███████╗██╗      █████╗ ███████╗██╗  ██╗    ███████╗ █████╗ ██╗      ██████╗ ██████╗ ███╗   ██╗    ██╗    ██╗███████╗ ██████╗██╗  ██╗ █████╗ ████████╗
 ██╔════╝██║     ██╔══██╗██╔════╝██║ ██╔╝    ██╔════╝██╔══██╗██║     ██╔════╝██╔═══██╗████╗  ██║    ██║    ██║██╔════╝██╔════╝██║  ██║██╔══██╗╚══██╔══╝
 █████╗  ██║     ███████║███████╗█████╔╝     █████╗  ███████║██║     ██║     ██║   ██║██╔██╗ ██║    ██║ █╗ ██║█████╗  ██║     ███████║███████║   ██║
 ██╔══╝  ██║     ██╔══██║╚════██║██╔═██╗     ██╔══╝  ██╔══██║██║     ██║     ██║   ██║██║╚██╗██║    ██║███╗██║██╔══╝  ██║     ██╔══██║██╔══██║   ██║
 ██║     ███████╗██║  ██║███████║██║  ██╗    ██║     ██║  ██║███████╗╚██████╗╚██████╔╝██║ ╚████║    ╚███╔███╔╝███████╗╚██████╗██║  ██║██║  ██║   ██║
 ╚═╝     ╚══════╝╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝    ╚═╝     ╚═╝  ╚═╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝  ╚═══╝     ╚══╝╚══╝ ╚══════╝ ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝   ╚═╝   1.0 Plus

获取代码

cd /opt/

git clone https://github.com/W-BC0001/flask-falcon-wechat.git

cd flask-falcon-wechat/flask-falcon-wechat

部署方式

虚拟机部署方式

docker-compose 部署方式

open-falcon 接入 flask-falcon-wechat 报警方式

接口地址一定要加上最后的/
接口调用方法

vim alarm/config/cfg.json
...
    "api": {
        "im": "http://127.0.0.1:2333/v1/send/",
...

重启open-falcon alarm插件

./open-falcon restart alarm

使用截图

screenshots 1

screenshots 2

About

open-falcon 企业微信报警插件


Languages

Language:Python 67.3%Language:Shell 28.1%Language:Dockerfile 4.7%