{"id":13600481,"url":"https://github.com/n0vad3v/g2ww","last_synced_at":"2025-08-22T05:04:34.461Z","repository":{"id":108426551,"uuid":"255545260","full_name":"n0vad3v/g2ww","owner":"n0vad3v","description":"Proxy Grafana Webhook alert to WeChat Work.","archived":false,"fork":false,"pushed_at":"2020-07-07T11:48:21.000Z","size":105,"stargazers_count":51,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T03:37:25.153Z","etag":null,"topics":["alert","bot","grafana","proxy","webhook-address","wechat"],"latest_commit_sha":null,"homepage":"https://g2ww.knat.network","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n0vad3v.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-04-14T07:53:31.000Z","updated_at":"2025-01-18T06:56:16.000Z","dependencies_parsed_at":"2023-03-12T08:30:57.769Z","dependency_job_id":null,"html_url":"https://github.com/n0vad3v/g2ww","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/n0vad3v/g2ww","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0vad3v%2Fg2ww","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0vad3v%2Fg2ww/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0vad3v%2Fg2ww/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0vad3v%2Fg2ww/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n0vad3v","download_url":"https://codeload.github.com/n0vad3v/g2ww/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0vad3v%2Fg2ww/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271588743,"owners_count":24785751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alert","bot","grafana","proxy","webhook-address","wechat"],"created_at":"2024-08-01T18:00:39.774Z","updated_at":"2025-08-22T05:04:34.433Z","avatar_url":"https://github.com/n0vad3v.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# G2WW (Grafana 2 Wechat Work)\n\u003e Proxy Grafana Webhook alert to WeChat Work.\n\nGrafana doesn't support push alert to WeChat Work(企業微信) by it's design, this is a small adapter for supporting this.\n\n\n## Build g2ww\n\n```\ngo build *.go -o g2ww\n```\n\nYou can use docker if you don't want to build it yourself. Just download the [docker-compose.yml](https://raw.githubusercontent.com/n0vad3v/g2ww/master/docker-compose.yml) file, and `docker-compose up -d`\n\n```\nwget https://raw.githubusercontent.com/n0vad3v/g2ww/master/docker-compose.yml\ndocker-compose up -d\n```\n\nThen g2ww will listen on `localhost:2408`, quite simple isn't it?\n\n## Run g2ww\n\nRun `g2ww` on server, it will listen on `http://127.0.0.1:2408` by default, keep it running in background (`systemd` or `screen`?).\n\n\n## Let Nginx to proxy it\n\nLike this:\n\n```\nserver {\n        listen 80;\n        server_name g2ww.nova.moe;\n\n        location / {\n            proxy_pass http://127.0.0.1:2408;\n        }\n}\n```\n\n## Create a Wechat Work Bot\n\nCreate a Wechat Work Bot and get the webhook address.\n\n![](./img/ww-bot.png)\n\nFor instance, the webhook address is `https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=e28dde4c-1998-0002-0018-114514114514`.\n\n## Configure Grafana\n\nIn the configuration above, we need to specify the address like this:\n\n`https://g2ww.nova.moe/e28dde4c-1998-0002-0018-114514114514`\n\n![](./img/grafana.png)\n\n## Demo\n\n![](./img/demo.png)\n\nQuite simple, isn't it?","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0vad3v%2Fg2ww","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn0vad3v%2Fg2ww","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0vad3v%2Fg2ww/lists"}