https://github.com/guyongquan/webhook-adapter
https://github.com/guyongquan/webhook-adapter
alertmanager-webhook prometheus
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/guyongquan/webhook-adapter
- Owner: guyongquan
- License: mit
- Created: 2019-11-05T01:51:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T12:07:16.000Z (over 3 years ago)
- Last Synced: 2024-11-05T23:41:40.600Z (over 1 year ago)
- Topics: alertmanager-webhook, prometheus
- Language: JavaScript
- Size: 28.3 KB
- Stars: 43
- Watchers: 1
- Forks: 30
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webhook-adapter
```bash
node index.js --port=8080 --adapter=./prometheusalert/wx.js=/wx=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key={key} --adapter=./prometheusalert/dingtalk.js=/dingtalk=https://oapi.dingtalk.com/robot/send?access_token={token}#{secret}
```
## docker
```bash
docker run --name webhook-adapter -p 8080:80 -d guyongquan/webhook-adapter --adapter=/app/prometheusalert/wx.js=/wx=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key={key} --adapter=/app/prometheusalert/dingtalk.js=/dingtalk=https://oapi.dingtalk.com/robot/send?access_token={token}#{secret}
```