redpangzi666 / prometheus-webhook-feishu

Prometheus alert to feishu .

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feishu alert

Generating feishu notification from Prometheus AlertManager WebHooks. This project rely on python3.

First

You must be have a self-built. This bot should have callback API.Follow this https://open.feishu.cn/document/uQjL04CN/ukzM04SOzQjL5MDN

Config

You must set some envs.

Install

Building from source

To build Prometheus from source code, first ensure that have a working Python environment with version 3.6.

export CHAT_ID=xxx
export APP_ID=xxx
export APP_SECRET=xxx
export ALERTMANAER_URL=xxx
python feishu-alert.py

Docker

docker build -t feishu-alert:latest .
docker run --name feishu-alert -d  feishu-alert:latest -e CHAT_ID=xxx -e APP_ID=xxx -e APP_SECRET=xxx -e ALERTMANAER_URL=xxx

About

Prometheus alert to feishu .


Languages

Language:Python 96.1%Language:Dockerfile 3.9%