prometheus-wechatbot-webhook

wechatbot for prometheus alertmanager webhook

Build the app from src:
powershell:

$env:GOOS="linux"
cd src
go build

Change the src/wechatbot.tmpl {{ define "wechatbot.url.api" }}https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YourKey{{end}} the key=your wechat bot api key.

Run As docker :

docker run -d --name wechatbot --always=restart -p 9080:9080 lckei/promethues-wechatbot-webhook

Configure the promethues alertmanager config.yml:

...
receivers:
- name: 'wechatbot.hook'
  webhook_configs:
  - url: 'http://192.168.5.210:9080/wechatbot'
    send_resolved: true

...

The GitHub Link:

https://github.com/lckei/prometheus-wechatbot-webhook