Skip to content

lnxyz/prometheus-wechatbot-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 --restart=always \
  -v /etc/localtime:/etc/localtime \
  -v src/wechatbot.tmpl:/apps/wechatbot.tmpl \
  -p 9080:9080 prkei/prometheus-wechatbot-webhook

Configure the promethues alertmanager config.yml:

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

...

Releases

No releases published

Packages

No packages published