1. Create an enterprise account (no authentication required for less than 200 people) and obtain the enterprise ID WechatWorkCorpId
https://work.weixin.qq.com/wework_admin/frame#profile
2. Create a self-built application and use the management page to obtain WechatWorkAgentId
and WechatWorkCorpSecret
3. Go to the address book to view your account and get DefaultReceiverUserId
3. Copy docker-compose.yaml locally, edit the file, add the above environment variables and random string token, and then execute
docker-compose up -d
4. Go to Enterprise WeChat->My Business->WeChat Plugin, scan the QR code to follow Enterprise WeChat https://work.weixin.qq.com/wework_admin/frame#profile/wxPlugin
5.Send the following request
curl -X POST
http://127.0.0.1:60009/push
-H ' Content-Type: application/x-www-form-urlencoded '
-H ' token: your_token '
-d ' message=1234 '
6. The micro workbench you just followed on WeChat should receive the message sent in step 5.
7. Grafana alarm notification function can be used by setting two environment variables: GrafanaWebhookUser and GrafanaWebhookPassword.
https://drone.io/