项目作者: n0vad3v

项目描述 :
Proxy Grafana Webhook alert to WeChat Work.(Now in Cloudflare Workers 「Staff Picks」)
高级语言: JavaScript
项目地址: git://github.com/n0vad3v/g2ww-serverless.git
创建时间: 2020-07-08T03:26:20Z
项目社区:https://github.com/n0vad3v/g2ww-serverless

开源协议:Other

下载


G2WW (Grafana 2 Wechat Work) Serverless Edition

Proxy Grafana Webhook alert to WeChat Work.

Grafana doesn’t support push alert to WeChat Work(企業微信) by it’s design(They even close my PR: Add a new notifier : WeChat Work(企業微信) #26109), this is a small adapter for supporting this.

This is the serverless-edition of n0vad3v/G2WW, now it’s in 「Staff Picks」 of Built with Workers.

Installation

Simple copy the content of index.js to Cloudflare Workers.

Usage

Create a Wechat Work Bot

Create a Wechat Work Bot and get the webhook address.

For instance, the webhook address is https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=e28dde4c-1998-0002-0018-114514114514.

Configure Grafana

In the configuration above, we need to specify the address like this:

https://g2ww.knat.network/e28dde4c-1998-0002-0018-114514114514

Demo

Quite simple, isn’t it?